protected static class FSDirectory.FSIndexOutput extends BufferedIndexOutput
RandomAccessFile.write(byte[], int, int)DEFAULT_BUFFER_SIZE| Constructor and Description |
|---|
FSDirectory.FSIndexOutput(FSDirectory parent,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream to further operations.
|
protected void |
flushBuffer(byte[] b,
int offset,
int size)
Expert: implements buffer write.
|
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, getBufferSize, getFilePointer, writeByte, writeBytescopyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLongpublic FSDirectory.FSIndexOutput(FSDirectory parent, String name) throws IOException
IOExceptionprotected void flushBuffer(byte[] b,
int offset,
int size)
throws IOException
BufferedIndexOutputflushBuffer in class BufferedIndexOutputb - the bytes to writeoffset - the offset in the byte arraysize - the number of bytes to writeIOExceptionpublic void close()
throws IOException
IndexOutputclose in interface Closeableclose in class BufferedIndexOutputIOExceptionpublic void seek(long pos)
throws IOException
seek in class BufferedIndexOutputIOExceptionIndexOutput.getFilePointer()public long length()
throws IOException
IndexOutputlength in class BufferedIndexOutputIOExceptionpublic void setLength(long length)
throws IOException
IndexOutputsetLength in class IndexOutputlength - file lengthIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.