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| Modifier | Constructor and Description |
|---|---|
protected |
IndexOutput(String resourceDescription)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Closes this stream to further operations.
|
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.
|
String |
toString() |
copyBytes, writeByte, writeBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong, writeZInt, writeZLongprotected IndexOutput(String resourceDescription)
toString().public abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic abstract long getFilePointer()
public abstract long getChecksum()
throws IOException
IOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.