Closeable, AutoCloseable, Cloneableprotected static class NIOFSDirectory.NIOFSIndexInput extends SimpleFSDirectory.SimpleFSIndexInput
SimpleFSDirectory.SimpleFSIndexInput.Descriptorbuffer, BUFFER_SIZEchunkSize, 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, setBufferSizereadChars, readString, readStringStringMap, setModifiedUTF8StringsModeskipChars, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, copyBytes, length, seekInternalpublic NIOFSIndexInput(File path, int bufferSize, int chunkSize) throws IOException
IOExceptionprotected void newBuffer(byte[] newBuffer)
newBuffer in class BufferedIndexInputpublic void close()
throws IOException
IndexInputclose in interface AutoCloseableclose in interface Closeableclose 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-2018 Apache Software Foundation. All Rights Reserved.