public abstract class IndexOutput extends DataOutput implements java.io.Closeable
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)
Sets current position in this file, where the next write will occur.
|
void |
setLength(long length)
Set the file length.
|
copyBytes, writeByte, writeBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, 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)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 © 2000-2022 Apache Software Foundation. All Rights Reserved.