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, toString
readBytes, readInt, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
SkipBuffer(IndexInput input, int length) throws java.io.IOException
java.io.IOException
public void close()
IndexInput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class IndexInput
public long getFilePointer()
IndexInput
getFilePointer
in class IndexInput
IndexInput.seek(long)
public long length()
IndexInput
length
in class IndexInput
public byte readByte()
DataInput
readByte
in class DataInput
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len)
DataInput
readBytes
in class DataInput
b
- 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)
IndexInput
EOFException
and then the
stream is in an undetermined state.seek
in class IndexInput
IndexInput.getFilePointer()
public IndexInput slice(java.lang.String sliceDescription, long offset, long length) throws java.io.IOException
IndexInput
slice
in class IndexInput
java.io.IOException