public abstract class IndexOutput extends DataOutput implements java.io.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 java.io.IOException
java.io.IOExceptionpublic abstract void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic abstract long getFilePointer()
seek(long)@Deprecated
public abstract void seek(long pos)
throws java.io.IOException
java.io.IOExceptiongetFilePointer()public abstract long length()
throws java.io.IOException
java.io.IOExceptionpublic void setLength(long length)
throws java.io.IOException
length - file lengthjava.io.IOExceptionCopyright © 2010 - 2024 Adobe. All Rights Reserved