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, skipBytesprivate final ByteArrayDataInput packedIndex
private final long minLeafBlockFP
BKDOnHeapInput(IndexInput packedIndex, int numBytes) throws java.io.IOException
java.io.IOExceptionprivate BKDOnHeapInput(ByteArrayDataInput packedIndex, long minLeadBlockFP)
public BKDReader.BKDOnHeapInput clone()
DataInputClones 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.BKDInputlong getMinLeafBlockFP()
getMinLeafBlockFP in class BKDReader.BKDInputlong ramBytesUsed()
ramBytesUsed in class BKDReader.BKDInputint getPosition()
getPosition in class BKDReader.BKDInputvoid setPosition(int pos)
setPosition in class BKDReader.BKDInputpublic byte readByte()
throws java.io.IOException
DataInputreadByte in class DataInputjava.io.IOExceptionDataOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
DataInputreadBytes in class DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readjava.io.IOExceptionDataOutput.writeBytes(byte[],int)