|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.util.packed.PackedDataInput
public final class 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.
PackedDataOutput| Constructor Summary | |
|---|---|
PackedDataInput(DataInput in)
Create a new instance that wraps in. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackedDataInput(DataInput in)
in.
| Method Detail |
|---|
public long readLong(int bitsPerValue)
throws IOException
bitsPerValue bits.
IOExceptionpublic void skipToNextByte()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||