private static final class MultiLevelSkipListReader.SkipBuffer extends IndexInput
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
data |
private long |
pointer |
private int |
pos |
| Constructor and Description |
|---|
SkipBuffer(IndexInput input,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream to further operations.
|
long |
getFilePointer()
Returns the current position in this file, where the next read will
occur.
|
long |
length()
The number of bytes in the file.
|
byte |
readByte()
Reads and returns a single byte.
|
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset.
|
void |
seek(long pos)
Sets current position in this file, where the next read will occur.
|
IndexInput |
slice(java.lang.String sliceDescription,
long offset,
long length)
Creates a slice of this index input, with the given description, offset, and length.
|
clone, getFullSliceDescription, randomAccessSlice, toStringreadBytes, readInt, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytesSkipBuffer(IndexInput input, int length) throws java.io.IOException
java.io.IOExceptionpublic void close()
IndexInputclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class IndexInputpublic long getFilePointer()
IndexInputgetFilePointer in class IndexInputIndexInput.seek(long)public long length()
IndexInputlength in class IndexInputpublic byte readByte()
DataInputreadByte in class DataInputDataOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
DataInputreadBytes in class DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readDataOutput.writeBytes(byte[],int)public void seek(long pos)
IndexInputEOFException and then the
stream is in an undetermined state.seek in class IndexInputIndexInput.getFilePointer()public IndexInput slice(java.lang.String sliceDescription, long offset, long length) throws java.io.IOException
IndexInputslice in class IndexInputjava.io.IOException