static final class ByteBufferIndexInput.SingleBufferImpl extends ByteBufferIndexInput
ByteBufferIndexInput.MultiBufferImpl, ByteBufferIndexInput.SingleBufferImplbuffers, chunkSizeMask, chunkSizePower, curBuf, curBufIndex, guard, isClone, length| Constructor and Description |
|---|
SingleBufferImpl(java.lang.String resourceDescription,
java.nio.ByteBuffer buffer,
long length,
int chunkSizePower,
ByteBufferGuard guard) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFilePointer()
Returns the current position in this file, where the next read will
occur.
|
byte |
readByte(long pos)
Reads a byte at the given position in the file
|
int |
readInt(long pos)
Reads an integer at the given position in the file
|
long |
readLong(long pos)
Reads a long at the given position in the file
|
short |
readShort(long pos)
Reads a short at the given position in the file
|
void |
seek(long pos)
Sets current position in this file, where the next read will occur.
|
buildSlice, clone, close, length, newCloneInstance, newInstance, readByte, readBytes, readInt, readLELongs, readLong, readShort, setCurBuf, slicegetFullSliceDescription, randomAccessSlice, toStringreadBytes, readMapOfStrings, readSetOfStrings, readString, readVInt, readVLong, readZInt, readZLong, skipBytesSingleBufferImpl(java.lang.String resourceDescription,
java.nio.ByteBuffer buffer,
long length,
int chunkSizePower,
ByteBufferGuard guard)
public void seek(long pos)
throws java.io.IOException
IndexInputEOFException and then the
stream is in an undetermined state.seek in class ByteBufferIndexInputjava.io.IOExceptionIndexInput.getFilePointer()public long getFilePointer()
IndexInputgetFilePointer in class ByteBufferIndexInputIndexInput.seek(long)public byte readByte(long pos)
throws java.io.IOException
RandomAccessInputreadByte in interface RandomAccessInputreadByte in class ByteBufferIndexInputjava.io.IOExceptionDataInput.readByte()public short readShort(long pos)
throws java.io.IOException
RandomAccessInputreadShort in interface RandomAccessInputreadShort in class ByteBufferIndexInputjava.io.IOExceptionDataInput.readShort()public int readInt(long pos)
throws java.io.IOException
RandomAccessInputreadInt in interface RandomAccessInputreadInt in class ByteBufferIndexInputjava.io.IOExceptionDataInput.readInt()public long readLong(long pos)
throws java.io.IOException
RandomAccessInputreadLong in interface RandomAccessInputreadLong in class ByteBufferIndexInputjava.io.IOExceptionDataInput.readLong()