public static class HdfsDirectory.HdfsIndexInput extends CustomBufferedIndexInput
buffer, BUFFER_SIZE| Constructor and Description |
|---|
HdfsIndexInput(String name,
org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
IndexInput |
clone() |
protected void |
closeInternal() |
long |
length() |
protected void |
readInternal(byte[] b,
int offset,
int length)
Expert: implements buffer refill.
|
protected void |
seekInternal(long pos)
Expert: implements seek.
|
close, flushBuffer, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readVInt, readVLong, seek, slicegetFullSliceDescription, randomAccessSlice, toStringreadLELongs, readMapOfStrings, readSetOfStrings, readShort, readString, readZInt, readZLong, skipBytespublic HdfsIndexInput(String name, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, int bufferSize) throws IOException
IOExceptionprotected void readInternal(byte[] b,
int offset,
int length)
throws IOException
CustomBufferedIndexInputreadInternal in class CustomBufferedIndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslength - the number of bytes to readIOExceptionprotected void seekInternal(long pos)
throws IOException
CustomBufferedIndexInputCustomBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class CustomBufferedIndexInputIOExceptionCustomBufferedIndexInput.readInternal(byte[],int,int)protected void closeInternal()
throws IOException
closeInternal in class CustomBufferedIndexInputIOExceptionpublic long length()
length in class IndexInputpublic IndexInput clone()
clone in class CustomBufferedIndexInputCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.