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.
|
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, writeBytes
copyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong
public FSDirectory.FSIndexOutput(FSDirectory parent, String name) throws IOException
IOException
public void flushBuffer(byte[] b, int offset, int size) throws IOException
flushBuffer
in class BufferedIndexOutput
b
- the bytes to writeoffset
- the offset in the byte arraysize
- the number of bytes to writeIOException
public void close() throws IOException
IndexOutput
close
in interface Closeable
close
in class BufferedIndexOutput
IOException
public void seek(long pos) throws IOException
seek
in class BufferedIndexOutput
IOException
IndexOutput.getFilePointer()
public long length() throws IOException
IndexOutput
length
in class BufferedIndexOutput
IOException
public void setLength(long length) throws IOException
IndexOutput
setLength
in class IndexOutput
length
- file lengthIOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.