Class CountedBitSet

java.lang.Object
org.elasticsearch.index.seqno.CountedBitSet

public final class CountedBitSet extends Object
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 Details

    • CountedBitSet

      public CountedBitSet(short numBits)
  • Method Details

    • get

      public boolean get(int index)
    • set

      public void set(int index)