java.lang.Object
org.apache.lucene.util.packed.PackedDataInput
A
DataInput
wrapper to read unaligned, variable-length packed integers. This API is much
slower than the PackedInts
fixed-length API but can be convenient to save space.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long
(package private) final DataInput
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
readLong
(int bitsPerValue) Read the next long using exactlybitsPerValue
bits.void
If there are pending bits (at most 7), they will be ignored and the next value will be read starting at the next byte.
-
Field Details
-
in
-
current
long current -
remainingBits
int remainingBits
-
-
Constructor Details
-
PackedDataInput
Create a new instance that wrapsin
.
-
-
Method Details
-
readLong
Read the next long using exactlybitsPerValue
bits.- Throws:
IOException
-
skipToNextByte
public void skipToNextByte()If there are pending bits (at most 7), they will be ignored and the next value will be read starting at the next byte.
-