protected static class NIOFSDirectory.NIOFSIndexInput extends FSDirectory.FSIndexInput
FileChannel.read(ByteBuffer, long)
chunkSize, end, file, off
buffer, BUFFER_SIZE, MERGE_BUFFER_SIZE
Constructor and Description |
---|
NIOFSDirectory.NIOFSIndexInput(File path,
IOContext context,
int chunkSize) |
NIOFSDirectory.NIOFSIndexInput(String sliceDescription,
File path,
RandomAccessFile file,
FileChannel fc,
long off,
long length,
int bufferSize,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
newBuffer(byte[] newBuffer) |
protected void |
readInternal(byte[] b,
int offset,
int len)
Expert: implements buffer refill.
|
protected void |
seekInternal(long pos)
Expert: implements seek.
|
clone, close, length
bufferSize, flushBuffer, getBufferSize, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
toString
readString, readStringSet, readStringStringMap
public NIOFSDirectory.NIOFSIndexInput(File path, IOContext context, int chunkSize) throws IOException
IOException
public NIOFSDirectory.NIOFSIndexInput(String sliceDescription, File path, RandomAccessFile file, FileChannel fc, long off, long length, int bufferSize, int chunkSize)
protected void newBuffer(byte[] newBuffer)
newBuffer
in class BufferedIndexInput
protected void readInternal(byte[] b, int offset, int len) throws IOException
BufferedIndexInput
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 pos) throws IOException
BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
will occur.seekInternal
in class BufferedIndexInput
IOException
BufferedIndexInput.readInternal(byte[],int,int)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.