public final class PackedDataInput extends Object
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.PackedDataOutput
Constructor and Description |
---|
PackedDataInput(DataInput in)
Create a new instance that wraps
in . |
Modifier and Type | Method and Description |
---|---|
long |
readLong(int bitsPerValue)
Read the next long using exactly
bitsPerValue bits. |
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.
|
public PackedDataInput(DataInput in)
in
.public long readLong(int bitsPerValue) throws IOException
bitsPerValue
bits.IOException
public void skipToNextByte()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.