protected static class SimpleFSDirectory.SimpleFSIndexInput extends FSDirectory.FSIndexInput
RandomAccessFile.seek(long)
followed by
RandomAccessFile.read(byte[], int, int)
.chunkSize, end, file, off
buffer, BUFFER_SIZE, MERGE_BUFFER_SIZE
Constructor and Description |
---|
SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc,
File path,
IOContext context,
int chunkSize) |
SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc,
RandomAccessFile file,
long off,
long length,
int bufferSize,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
readInternal(byte[] b,
int offset,
int len)
IndexInput methods
|
protected void |
seekInternal(long position)
Expert: implements seek.
|
clone, close, length
bufferSize, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
toString
readString, readStringSet, readStringStringMap
public SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc, File path, IOContext context, int chunkSize) throws IOException
IOException
public SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc, RandomAccessFile file, long off, long length, int bufferSize, int chunkSize)
protected void readInternal(byte[] b, int offset, int len) throws IOException
readInternal
in class BufferedIndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readIOException
protected void seekInternal(long position)
BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
will occur.seekInternal
in class BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.