protected static class SimpleFSDirectory.SimpleFSIndexOutput extends BufferedIndexOutput
Constructor and Description |
---|
SimpleFSIndexOutput(java.io.File path) |
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, writeChars, writeChars, writeInt, writeLong, writeString, writeStringStringMap, writeVInt, writeVLong
public SimpleFSIndexOutput(java.io.File path) throws java.io.IOException
java.io.IOException
public void flushBuffer(byte[] b, int offset, int size) throws java.io.IOException
flushBuffer
in class BufferedIndexOutput
b
- the bytes to writeoffset
- the offset in the byte arraysize
- the number of bytes to writejava.io.IOException
public void close() throws java.io.IOException
BufferedIndexOutput
close
in class BufferedIndexOutput
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in class BufferedIndexOutput
java.io.IOException
BufferedIndexOutput.getFilePointer()
public long length() throws java.io.IOException
BufferedIndexOutput
length
in class BufferedIndexOutput
java.io.IOException
public void setLength(long length) throws java.io.IOException
IndexOutput
setLength
in class IndexOutput
length
- file lengthjava.io.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.