Interface RBitSetAsync

    • Method Detail

      • toByteArrayAsync

        RFuture<byte[]> toByteArrayAsync()
      • lengthAsync

        RFuture<Long> lengthAsync()
        Returns "logical size" = index of highest set bit plus one. Returns zero if there are no any set bit.
        Returns:
        "logical size" = index of highest set bit plus one
      • setAsync

        RFuture<Void> setAsync​(long fromIndex,
                               long toIndex,
                               boolean value)
        Set all bits to value from fromIndex (inclusive) to toIndex (exclusive)
        Parameters:
        fromIndex - inclusive
        toIndex - exclusive
        value - true = 1, false = 0
        Returns:
        void
      • clearAsync

        RFuture<Void> clearAsync​(long fromIndex,
                                 long toIndex)
        Set all bits to zero from fromIndex (inclusive) to toIndex (exclusive)
        Parameters:
        fromIndex - inclusive
        toIndex - exclusive
        Returns:
        void
      • setAsync

        RFuture<Void> setAsync​(BitSet bs)
        Copy bits state of source BitSet object to this object
        Parameters:
        bs - - BitSet source
        Returns:
        void
      • notAsync

        RFuture<Void> notAsync()
        Executes NOT operation over all bits
        Returns:
        void
      • setAsync

        RFuture<Void> setAsync​(long fromIndex,
                               long toIndex)
        Set all bits to one from fromIndex (inclusive) to toIndex (exclusive)
        Parameters:
        fromIndex - inclusive
        toIndex - exclusive
        Returns:
        void
      • sizeAsync

        RFuture<Long> sizeAsync()
        Returns number of set bits.
        Returns:
        number of set bits.
      • getAsync

        RFuture<Boolean> getAsync​(long bitIndex)
        Returns true if bit set to one and false overwise.
        Parameters:
        bitIndex - - index of bit
        Returns:
        true if bit set to one and false overwise.
      • setAsync

        RFuture<Boolean> setAsync​(long bitIndex)
        Set bit to one at specified bitIndex
        Parameters:
        bitIndex - - index of bit
        Returns:
        true - if previous value was true, false - if previous value was false
      • setAsync

        RFuture<Boolean> setAsync​(long bitIndex,
                                  boolean value)
        Set bit to value at specified bitIndex
        Parameters:
        bitIndex - - index of bit
        value - true = 1, false = 0
        Returns:
        true - if previous value was true, false - if previous value was false
      • cardinalityAsync

        RFuture<Long> cardinalityAsync()
        Returns the number of bits set to one.
        Returns:
        number of bits
      • clearAsync

        RFuture<Boolean> clearAsync​(long bitIndex)
        Set bit to zero at specified bitIndex
        Parameters:
        bitIndex - - index of bit
        Returns:
        true - if previous value was true, false - if previous value was false
      • clearAsync

        RFuture<Void> clearAsync()
        Set all bits to zero
        Returns:
        void
      • orAsync

        RFuture<Void> orAsync​(String... bitSetNames)
        Executes OR operation over this object and specified bitsets. Stores result into this object.
        Parameters:
        bitSetNames - - name of stored bitsets
        Returns:
        void
      • andAsync

        RFuture<Void> andAsync​(String... bitSetNames)
        Executes AND operation over this object and specified bitsets. Stores result into this object.
        Parameters:
        bitSetNames - - name of stored bitsets
        Returns:
        void
      • xorAsync

        RFuture<Void> xorAsync​(String... bitSetNames)
        Executes XOR operation over this object and specified bitsets. Stores result into this object.
        Parameters:
        bitSetNames - - name of stored bitsets
        Returns:
        void