public abstract static class PackedInts.ReaderImpl extends Object implements PackedInts.Reader
| Modifier and Type | Field and Description |
|---|---|
protected int |
bitsPerValue |
protected int |
valueCount |
| Modifier | Constructor and Description |
|---|---|
protected |
PackedInts.ReaderImpl(int valueCount,
int bitsPerValue) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getArray()
Expert: if the bit-width of this reader matches one of
java's native types, returns the underlying array
(ie, byte[], short[], int[], long[]); else, returns
null.
|
int |
getBitsPerValue() |
long |
getMaxValue() |
boolean |
hasArray()
Returns true if this implementation is backed by a
native java array.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetprotected final int bitsPerValue
protected final int valueCount
protected PackedInts.ReaderImpl(int valueCount,
int bitsPerValue)
public int getBitsPerValue()
getBitsPerValue in interface PackedInts.ReaderbitsPerValue * #values as implementations are free to
use non-space-optimal packing of bits.public int size()
size in interface PackedInts.Readerpublic long getMaxValue()
public Object getArray()
PackedInts.ReadergetArray in interface PackedInts.Readerpublic boolean hasArray()
PackedInts.ReaderhasArray in interface PackedInts.ReaderPackedInts.Reader.getArray()