Closeable
, AutoCloseable
, Cloneable
protected static class NIOFSDirectory.NIOFSIndexInput extends SimpleFSDirectory.SimpleFSIndexInput
SimpleFSDirectory.SimpleFSIndexInput.Descriptor
buffer, BUFFER_SIZE
chunkSize, file
Constructor | Description |
---|---|
NIOFSIndexInput(File path,
int bufferSize,
int chunkSize) |
Modifier and Type | Method | 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
|
flushBuffer, getBufferSize, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode
skipChars, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, copyBytes, length, seekInternal
public NIOFSIndexInput(File path, int bufferSize, int chunkSize) throws IOException
IOException
protected void newBuffer(byte[] newBuffer)
newBuffer
in class BufferedIndexInput
public void close() throws IOException
IndexInput
close
in interface AutoCloseable
close
in interface Closeable
close
in class SimpleFSDirectory.SimpleFSIndexInput
IOException
protected void readInternal(byte[] b, int offset, int len) throws IOException
SimpleFSDirectory.SimpleFSIndexInput
readInternal
in class SimpleFSDirectory.SimpleFSIndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readIOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.