Package org.elasticsearch.index.seqno
Class CountedBitSet
java.lang.Object
org.elasticsearch.index.seqno.CountedBitSet
A
CountedBitSet
wraps a FixedBitSet
but automatically releases the internal bitset
when all bits are set to reduce memory usage. This structure can work well for sequence numbers as
these numbers are likely to form contiguous ranges (eg. filling all bits).-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CountedBitSet
public CountedBitSet(short numBits)
-
-
Method Details
-
get
public boolean get(int index) -
set
public void set(int index)
-