public abstract class IndexOutput extends DataOutput implements Closeable
IndexOutput may only be used from one thread, because it is not
thread safe (it keeps internal state like file position).
Directory,
IndexInput| Constructor and Description |
|---|
IndexOutput() |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
(4.1) This method will be removed in Lucene 5.0
|
void |
setLength(long length)
Set the file length.
|
copyBytes, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLongpublic abstract void flush()
throws IOException
IOExceptionpublic abstract void close()
throws IOException
close in interface CloseableIOExceptionpublic abstract long getFilePointer()
seek(long)@Deprecated public abstract void seek(long pos) throws IOException
IOExceptiongetFilePointer()public abstract long length()
throws IOException
IOExceptionpublic void setLength(long length)
throws IOException
length - file lengthIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.