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()
Deprecated.
Lucene never calls this method.
|
abstract long |
getChecksum()
Returns the current checksum of bytes written so far
|
abstract long |
getFilePointer()
Returns the current position in this file, where the next write will
occur.
|
long |
length()
Deprecated.
Use
getFilePointer() instead; this
method will be removed in Lucene5.0. |
copyBytes, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong, writeZInt, writeZLong@Deprecated public abstract void flush() throws IOException
IOExceptionpublic abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic abstract long getFilePointer()
public abstract long getChecksum()
throws IOException
IOException@Deprecated public long length() throws IOException
getFilePointer() instead; this
method will be removed in Lucene5.0.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.