Package org.apache.lucene.util.bkd
Class BKDReader.BKDOnHeapInput
- java.lang.Object
-
- org.apache.lucene.store.DataInput
-
- org.apache.lucene.util.bkd.BKDReader.BKDInput
-
- org.apache.lucene.util.bkd.BKDReader.BKDOnHeapInput
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- BKDReader
private static class BKDReader.BKDOnHeapInput extends BKDReader.BKDInput implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description private long
minLeafBlockFP
private ByteArrayDataInput
packedIndex
-
Constructor Summary
Constructors Modifier Constructor Description private
BKDOnHeapInput(ByteArrayDataInput packedIndex, long minLeadBlockFP)
(package private)
BKDOnHeapInput(IndexInput packedIndex, int numBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.apache.lucene.store.DataInput
readBytes, readInt, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
-
-
-
-
Field Detail
-
packedIndex
private final ByteArrayDataInput packedIndex
-
minLeafBlockFP
private final long minLeafBlockFP
-
-
Constructor Detail
-
BKDOnHeapInput
BKDOnHeapInput(IndexInput packedIndex, int numBytes) throws java.io.IOException
- Throws:
java.io.IOException
-
BKDOnHeapInput
private BKDOnHeapInput(ByteArrayDataInput packedIndex, long minLeadBlockFP)
-
-
Method Detail
-
clone
public BKDReader.BKDOnHeapInput clone()
Description copied from class:DataInput
Returns a clone of this stream.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.
- Overrides:
clone
in classBKDReader.BKDInput
-
getMinLeafBlockFP
long getMinLeafBlockFP()
- Specified by:
getMinLeafBlockFP
in classBKDReader.BKDInput
-
ramBytesUsed
long ramBytesUsed()
- Specified by:
ramBytesUsed
in classBKDReader.BKDInput
-
getPosition
int getPosition()
- Specified by:
getPosition
in classBKDReader.BKDInput
-
setPosition
void setPosition(int pos)
- Specified by:
setPosition
in classBKDReader.BKDInput
-
readByte
public byte readByte() throws java.io.IOException
Description copied from class:DataInput
Reads and returns a single byte.- Specified by:
readByte
in classDataInput
- Throws:
java.io.IOException
- See Also:
DataOutput.writeByte(byte)
-
readBytes
public void readBytes(byte[] b, int offset, int len) throws java.io.IOException
Description copied from class:DataInput
Reads a specified number of bytes into an array at the specified offset.- Specified by:
readBytes
in classDataInput
- Parameters:
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read- Throws:
java.io.IOException
- See Also:
DataOutput.writeBytes(byte[],int)
-
-