protected static class FSDirectory.FSIndexOutput extends BufferedIndexOutput
| Constructor and Description |
|---|
FSDirectory.FSIndexOutput(FSDirectory parent,
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 FSDirectory.FSIndexOutput(FSDirectory parent, String name) throws IOException
IOExceptionpublic void flushBuffer(byte[] b,
int offset,
int size)
throws IOException
flushBuffer in class BufferedIndexOutputb - the bytes to writeoffset - the offset in the byte arraysize - the number of bytes to writeIOExceptionpublic void close()
throws IOException
BufferedIndexOutputclose in interface Closeableclose in class BufferedIndexOutputIOExceptionpublic void seek(long pos)
throws IOException
seek in class BufferedIndexOutputIOExceptionBufferedIndexOutput.getFilePointer()public long length()
throws IOException
BufferedIndexOutputlength in class BufferedIndexOutputIOExceptionpublic void setLength(long length)
throws IOException
IndexOutputsetLength in class IndexOutputlength - file lengthIOException