private static class BKDReader.BKDOnHeapInput extends BKDReader.BKDInput implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private long |
minLeafBlockFP |
private ByteArrayDataInput |
packedIndex |
Modifier | Constructor and Description |
---|---|
private |
BKDOnHeapInput(ByteArrayDataInput packedIndex,
long minLeadBlockFP) |
(package private) |
BKDOnHeapInput(IndexInput packedIndex,
int numBytes) |
Modifier and Type | Method and Description |
---|---|
BKDReader.BKDOnHeapInput |
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 ByteArrayDataInput packedIndex
private final long minLeafBlockFP
BKDOnHeapInput(IndexInput packedIndex, int numBytes) throws java.io.IOException
java.io.IOException
private BKDOnHeapInput(ByteArrayDataInput packedIndex, long minLeadBlockFP)
public BKDReader.BKDOnHeapInput 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)
setPosition
in class BKDReader.BKDInput
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)