Package org.apache.lucene.util.packed
Class PackedInts.MutableImpl
- 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:
Direct16,Direct32,Direct64,Direct8,Packed16ThreeBlocks,Packed64,Packed64SingleBlock,Packed8ThreeBlocks
- Enclosing class:
- PackedInts
abstract static class PackedInts.MutableImpl extends PackedInts.Mutable
-
-
Field Summary
Fields Modifier and Type Field Description protected intbitsPerValueprotected intvalueCount-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMutableImpl(int valueCount, int bitsPerValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitsPerValue()intsize()java.lang.StringtoString()-
Methods inherited from class org.apache.lucene.util.packed.PackedInts.Mutable
clear, fill, getFormat, save, 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
-
-
-
-
Method Detail
-
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-