java.lang.Object
org.apache.flink.runtime.operators.util.BitSet

public class BitSet extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    BitSet(int byteSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Number of bits
    void
    Clear the bit set.
    boolean
    get(int index)
    Returns true if the bit is set in the specified index.
    void
    set(int index)
    Sets the bit at specified index.
    void
    setMemorySegment(org.apache.flink.core.memory.MemorySegment memorySegment, int offset)
     
    byte[]
    Serializing MemorySegment to bytes, note that only heap memory is currently supported.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BitSet

      public BitSet(int byteSize)
  • Method Details

    • setMemorySegment

      public void setMemorySegment(org.apache.flink.core.memory.MemorySegment memorySegment, int offset)
    • set

      public void set(int index)
      Sets the bit at specified index.
      Parameters:
      index - - position
    • get

      public boolean get(int index)
      Returns true if the bit is set in the specified index.
      Parameters:
      index - - position
      Returns:
      - value at the bit position
    • bitSize

      public int bitSize()
      Number of bits
    • toBytes

      public byte[] toBytes()
      Serializing MemorySegment to bytes, note that only heap memory is currently supported.
    • clear

      public void clear()
      Clear the bit set.
    • toString

      public String toString()
      Overrides:
      toString in class Object