protected static class NIOFSDirectory.NIOFSIndexInput extends SimpleFSDirectory.SimpleFSIndexInput
SimpleFSDirectory.SimpleFSIndexInput.DescriptorchunkSize, filebuffer, BUFFER_SIZE| Constructor and Description |
|---|
NIOFSDirectory.NIOFSIndexInput(File path,
int bufferSize)
Deprecated.
Please use ctor taking chunkSize
|
NIOFSDirectory.NIOFSIndexInput(File path,
int bufferSize,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream to further operations.
|
protected void |
newBuffer(byte[] newBuffer) |
protected void |
readInternal(byte[] b,
int offset,
int len)
IndexInput methods
|
clone, length, seekInternalgetBufferSize, getFilePointer, readByte, readBytes, readBytes, seek, setBufferSizereadChars, readInt, readLong, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode, skipCharspublic NIOFSDirectory.NIOFSIndexInput(File path, int bufferSize) throws IOException
IOExceptionpublic NIOFSDirectory.NIOFSIndexInput(File path, int bufferSize, int chunkSize) throws IOException
IOExceptionprotected void newBuffer(byte[] newBuffer)
newBuffer in class BufferedIndexInputpublic void close()
throws IOException
IndexInputclose in class SimpleFSDirectory.SimpleFSIndexInputIOExceptionprotected void readInternal(byte[] b,
int offset,
int len)
throws IOException
SimpleFSDirectory.SimpleFSIndexInputreadInternal in class SimpleFSDirectory.SimpleFSIndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.