public interface RBitSetReactive extends RExpirableReactive
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Void> |
and(String... bitSetNames)
Executes AND operation over this object and specified bitsets.
|
org.reactivestreams.Publisher<BitSet> |
asBitSet() |
org.reactivestreams.Publisher<Long> |
cardinality()
Returns the number of bits set to one.
|
org.reactivestreams.Publisher<Void> |
clear()
Set all bits to zero
|
org.reactivestreams.Publisher<Boolean> |
clear(long bitIndex)
Set bit to zero at specified
bitIndex |
org.reactivestreams.Publisher<Void> |
clear(long fromIndex,
long toIndex)
Set all bits to zero from
fromIndex (inclusive) to toIndex (exclusive) |
org.reactivestreams.Publisher<Boolean> |
get(long bitIndex)
Returns
true if bit set to one and false overwise. |
org.reactivestreams.Publisher<Long> |
length()
Returns "logical size" = index of highest set bit plus one.
|
org.reactivestreams.Publisher<Void> |
not()
Executes NOT operation over all bits
|
org.reactivestreams.Publisher<Void> |
or(String... bitSetNames)
Executes OR operation over this object and specified bitsets.
|
org.reactivestreams.Publisher<Void> |
set(BitSet bs)
Copy bits state of source BitSet object to this object
|
org.reactivestreams.Publisher<Boolean> |
set(long bitIndex)
Set bit to one at specified bitIndex
|
org.reactivestreams.Publisher<Boolean> |
set(long bitIndex,
boolean value)
Set bit to
value at specified bitIndex |
org.reactivestreams.Publisher<Void> |
set(long fromIndex,
long toIndex)
Set all bits to one from
fromIndex (inclusive) to toIndex (exclusive) |
org.reactivestreams.Publisher<Void> |
set(long fromIndex,
long toIndex,
boolean value)
Set all bits to
value from fromIndex (inclusive) to toIndex (exclusive) |
org.reactivestreams.Publisher<Long> |
size()
Returns number of set bits.
|
org.reactivestreams.Publisher<byte[]> |
toByteArray() |
org.reactivestreams.Publisher<Void> |
xor(String... bitSetNames)
Executes XOR operation over this object and specified bitsets.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
org.reactivestreams.Publisher<BitSet> asBitSet()
org.reactivestreams.Publisher<byte[]> toByteArray()
org.reactivestreams.Publisher<Long> length()
org.reactivestreams.Publisher<Void> set(long fromIndex, long toIndex, boolean value)
value
from fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusivevalue
- true = 1, false = 0org.reactivestreams.Publisher<Void> clear(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusiveorg.reactivestreams.Publisher<Void> set(BitSet bs)
bs
- - BitSet sourceorg.reactivestreams.Publisher<Void> not()
org.reactivestreams.Publisher<Void> set(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusiveorg.reactivestreams.Publisher<Long> size()
org.reactivestreams.Publisher<Boolean> get(long bitIndex)
true
if bit set to one and false
overwise.bitIndex
- - index of bittrue
if bit set to one and false
overwise.org.reactivestreams.Publisher<Boolean> set(long bitIndex)
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falseorg.reactivestreams.Publisher<Boolean> set(long bitIndex, boolean value)
value
at specified bitIndex
bitIndex
- - index of bitvalue
- true = 1, false = 0true
- if previous value was true,
false
- if previous value was falseorg.reactivestreams.Publisher<Long> cardinality()
org.reactivestreams.Publisher<Boolean> clear(long bitIndex)
bitIndex
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falseorg.reactivestreams.Publisher<Void> clear()
org.reactivestreams.Publisher<Void> or(String... bitSetNames)
bitSetNames
- - name of stored bitsetsorg.reactivestreams.Publisher<Void> and(String... bitSetNames)
bitSetNames
- - name of stored bitsetsCopyright © 2014–2018 The Redisson Project. All rights reserved.