Package org.apache.lucene.store
Class SimpleFSDirectory.SimpleFSIndexInput
java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.lucene.store.BufferedIndexInput
org.apache.lucene.store.FSDirectory.FSIndexInput
org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
- Enclosing class:
- SimpleFSDirectory
Reads bytes with
RandomAccessFile.seek(long) followed by
RandomAccessFile.read(byte[], int, int).-
Field Summary
Fields inherited from class org.apache.lucene.store.FSDirectory.FSIndexInput
end, file, offFields inherited from class org.apache.lucene.store.BufferedIndexInput
buffer, BUFFER_SIZE, MERGE_BUFFER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSimpleFSIndexInput(String resourceDesc, File path, IOContext context) SimpleFSIndexInput(String resourceDesc, RandomAccessFile file, long off, long length, int bufferSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreadInternal(byte[] b, int offset, int len) IndexInput methodsprotected voidseekInternal(long position) Expert: implements seek.Methods inherited from class org.apache.lucene.store.FSDirectory.FSIndexInput
clone, close, lengthMethods inherited from class org.apache.lucene.store.BufferedIndexInput
bufferSize, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSizeMethods inherited from class org.apache.lucene.store.IndexInput
toStringMethods inherited from class org.apache.lucene.store.DataInput
readString, readStringSet, readStringStringMap
-
Constructor Details
-
SimpleFSIndexInput
- Throws:
IOException
-
SimpleFSIndexInput
public SimpleFSIndexInput(String resourceDesc, RandomAccessFile file, long off, long length, int bufferSize)
-
-
Method Details
-
readInternal
IndexInput methods- Specified by:
readInternalin classBufferedIndexInput- 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
-
seekInternal
protected void seekInternal(long position) Description copied from class:BufferedIndexInputExpert: implements seek. Sets current position in this file, where the nextBufferedIndexInput.readInternal(byte[],int,int)will occur.- Specified by:
seekInternalin classBufferedIndexInput- See Also:
-