|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.DataOutput org.apache.lucene.store.IndexOutput
public abstract class IndexOutput
Abstract base class for output to a file in a Directory. A random-access output stream. Used for all Lucene index output operations.
Directory
,
IndexInput
Constructor Summary | |
---|---|
IndexOutput()
|
Method Summary | |
---|---|
abstract void |
close()
Closes this stream to further operations. |
abstract void |
flush()
Forces any buffered output to be written. |
abstract long |
getFilePointer()
Returns the current position in this file, where the next write will occur. |
abstract long |
length()
The number of bytes in the file. |
abstract void |
seek(long pos)
Sets current position in this file, where the next write will occur. |
void |
setLength(long length)
Set the file length. |
Methods inherited from class org.apache.lucene.store.DataOutput |
---|
copyBytes, writeByte, writeBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLong |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexOutput()
Method Detail |
---|
public abstract void flush() throws IOException
IOException
public abstract void close() throws IOException
close
in interface Closeable
IOException
public abstract long getFilePointer()
seek(long)
public abstract void seek(long pos) throws IOException
IOException
getFilePointer()
public abstract long length() throws IOException
IOException
public void setLength(long length) throws IOException
length
- file length
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |