private static class BKDReader.BKDOffHeapInput extends BKDReader.BKDInput implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private long |
minLeafBlockFP |
private IndexInput |
packedIndex |
Modifier | Constructor and Description |
---|---|
(package private) |
BKDOffHeapInput(IndexInput packedIndex) |
private |
BKDOffHeapInput(IndexInput packedIndex,
long minLeadBlockFP) |
Modifier and Type | Method and Description |
---|---|
BKDReader.BKDOffHeapInput |
clone()
Returns a clone of this stream.
|
(package private) long |
getMinLeafBlockFP() |
(package private) int |
getPosition() |
(package private) long |
ramBytesUsed() |
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.
|
(package private) void |
setPosition(int pos) |
readBytes, readInt, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
private final IndexInput packedIndex
private final long minLeafBlockFP
BKDOffHeapInput(IndexInput packedIndex) throws java.io.IOException
java.io.IOException
private BKDOffHeapInput(IndexInput packedIndex, long minLeadBlockFP)
public BKDReader.BKDOffHeapInput clone()
DataInput
Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
clone
in class BKDReader.BKDInput
long getMinLeafBlockFP()
getMinLeafBlockFP
in class BKDReader.BKDInput
long ramBytesUsed()
ramBytesUsed
in class BKDReader.BKDInput
int getPosition()
getPosition
in class BKDReader.BKDInput
void setPosition(int pos) throws java.io.IOException
setPosition
in class BKDReader.BKDInput
java.io.IOException
public byte readByte() throws java.io.IOException
DataInput
readByte
in class DataInput
java.io.IOException
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len) throws java.io.IOException
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 readjava.io.IOException
DataOutput.writeBytes(byte[],int)