protected static class SimpleFSDirectory.SimpleFSIndexInput extends FSDirectory.FSIndexInput
RandomAccessFile.seek(long) followed by
RandomAccessFile.read(byte[], int, int).end, file, offbuffer, BUFFER_SIZE, MERGE_BUFFER_SIZE| Constructor and Description |
|---|
SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc,
File path,
IOContext context) |
SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc,
RandomAccessFile file,
long off,
long length,
int bufferSize) |
| 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, lengthbufferSize, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSizetoStringreadString, readStringSet, readStringStringMappublic SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc, File path, IOContext context) throws IOException
IOExceptionpublic SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc, RandomAccessFile file, long off, long length, int bufferSize)
protected void readInternal(byte[] b,
int offset,
int len)
throws IOException
readInternal in class BufferedIndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionprotected void seekInternal(long position)
BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int)Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.