java.lang.Object
org.apache.shardingsphere.data.pipeline.core.ingest.channel.memory.ManualBitSet

public final class ManualBitSet extends Object
Manual BitSet.
  • Constructor Details

    • ManualBitSet

      public ManualBitSet()
  • Method Details

    • set

      public void set(long bitIndex)
      Sets the bit at the specified index to true.
      Parameters:
      bitIndex - a bit index
    • get

      public BitSet get(long fromIndex, long toIndex)
      Get BitSet with specified range.
      Parameters:
      fromIndex - from index
      toIndex - to index
      Returns:
      BitSet
    • getEndIndex

      public long getEndIndex(long fromIndex, int size)
      Get end index.
      Parameters:
      fromIndex - from index
      size - true bit size
      Returns:
      index
    • clear

      public void clear(long bitIndex)
      Clear expire BitSet.
      Parameters:
      bitIndex - retain bit index