Package org.apache.lucene.store
Class NIOFSDirectory.NIOFSIndexInput
- java.lang.Object
-
- org.apache.lucene.store.DataInput
-
- org.apache.lucene.store.IndexInput
-
- org.apache.lucene.store.BufferedIndexInput
-
- org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
-
- org.apache.lucene.store.NIOFSDirectory.NIOFSIndexInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
- Enclosing class:
- NIOFSDirectory
protected static class NIOFSDirectory.NIOFSIndexInput extends SimpleFSDirectory.SimpleFSIndexInput
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
SimpleFSDirectory.SimpleFSIndexInput.Descriptor
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
chunkSize, file
-
Fields inherited from class org.apache.lucene.store.BufferedIndexInput
buffer, BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description NIOFSIndexInput(File path, int bufferSize, int chunkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the stream to further operations.protected voidnewBuffer(byte[] newBuffer)protected voidreadInternal(byte[] b, int offset, int len)IndexInput methods-
Methods inherited from class org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
clone, copyBytes, length, seekInternal
-
Methods inherited from class org.apache.lucene.store.BufferedIndexInput
flushBuffer, getBufferSize, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
-
Methods inherited from class org.apache.lucene.store.IndexInput
skipChars, toString
-
Methods inherited from class org.apache.lucene.store.DataInput
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode
-
-
-
-
Constructor Detail
-
NIOFSIndexInput
public NIOFSIndexInput(File path, int bufferSize, int chunkSize) throws IOException
- Throws:
IOException
-
-
Method Detail
-
newBuffer
protected void newBuffer(byte[] newBuffer)
- Overrides:
newBufferin classBufferedIndexInput
-
close
public void close() throws IOExceptionDescription copied from class:IndexInputCloses the stream to further operations.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSimpleFSDirectory.SimpleFSIndexInput- Throws:
IOException
-
readInternal
protected void readInternal(byte[] b, int offset, int len) throws IOExceptionDescription copied from class:SimpleFSDirectory.SimpleFSIndexInputIndexInput methods- Overrides:
readInternalin classSimpleFSDirectory.SimpleFSIndexInput- Parameters:
b- the array to read bytes intooffset- the offset in the array to start storing byteslen- the number of bytes to read- Throws:
IOException
-
-