java.lang.Object
org.apache.lucene.util.packed.PackedInts.Reader
org.apache.lucene.util.packed.PackedInts.Mutable
org.apache.lucene.util.packed.PackedInts.MutableImpl
- All Implemented Interfaces:
Accountable
- Direct Known Subclasses:
Packed64
,Packed64SingleBlock
- Enclosing class:
PackedInts
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.util.packed.PackedInts.Mutable
clear, fill, set, set
Methods inherited from class org.apache.lucene.util.packed.PackedInts.Reader
get, get
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
-
Field Details
-
valueCount
protected final int valueCount -
bitsPerValue
protected final int bitsPerValue
-
-
Constructor Details
-
MutableImpl
protected MutableImpl(int valueCount, int bitsPerValue)
-
-
Method Details
-
getBitsPerValue
public final int getBitsPerValue()- Specified by:
getBitsPerValue
in classPackedInts.Mutable
- Returns:
- the number of bits used to store any given value. Note: This does not imply that
memory usage is
bitsPerValue * #values
as implementations are free to use non-space-optimal packing of bits.
-
size
public final int size()- Specified by:
size
in classPackedInts.Reader
- Returns:
- the number of values.
-
toString
-