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, setMethods inherited from class org.apache.lucene.util.packed.PackedInts.Reader
get, getMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getBitsPerValuein classPackedInts.Mutable- Returns:
- the number of bits used to store any given value. Note: This does not imply that
memory usage is
bitsPerValue * #valuesas implementations are free to use non-space-optimal packing of bits.
-
size
public final int size()- Specified by:
sizein classPackedInts.Reader- Returns:
- the number of values.
-
toString
-