protected static class FSDirectory.FSIndexOutput extends BufferedIndexOutput
| Constructor and Description |
|---|
FSIndexOutput(FSDirectory parent,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream to further operations.
|
void |
flushBuffer(byte[] b,
int offset,
int size)
output methods:
|
long |
length()
The number of bytes in the file.
|
void |
seek(long pos)
Random-access methods
|
void |
setLength(long length)
Set the file length.
|
flush, getFilePointer, writeByte, writeBytescopyBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLongpublic FSIndexOutput(FSDirectory parent, java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic void flushBuffer(byte[] b,
int offset,
int size)
throws java.io.IOException
flushBuffer in class BufferedIndexOutputb - the bytes to writeoffset - the offset in the byte arraysize - the number of bytes to writejava.io.IOExceptionpublic void close()
throws java.io.IOException
BufferedIndexOutputclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class BufferedIndexOutputjava.io.IOExceptionpublic void seek(long pos)
throws java.io.IOException
seek in class BufferedIndexOutputjava.io.IOExceptionBufferedIndexOutput.getFilePointer()public long length()
throws java.io.IOException
BufferedIndexOutputlength in class BufferedIndexOutputjava.io.IOExceptionpublic void setLength(long length)
throws java.io.IOException
IndexOutputsetLength in class IndexOutputlength - file lengthjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.