protected static class NIOFSDirectory.NIOFSIndexInput extends FSDirectory.FSIndexInput
FileChannel.read(ByteBuffer, long)chunkSize, end, file, offbuffer, 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, lengthbufferSize, flushBuffer, getBufferSize, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSizetoStringreadString, readStringSet, readStringStringMappublic NIOFSDirectory.NIOFSIndexInput(File path, IOContext context, int chunkSize) throws IOException
IOExceptionpublic 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 BufferedIndexInputprotected void readInternal(byte[] b,
int offset,
int len)
throws IOException
BufferedIndexInputreadInternal 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 pos)
throws IOException
BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class BufferedIndexInputIOExceptionBufferedIndexInput.readInternal(byte[],int,int)Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.