public interface RBitSetReactive extends RExpirableReactive
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
and(String... bitSetNames)
Executes AND operation over this object and specified bitsets.
|
reactor.core.publisher.Mono<Long> |
cardinality()
Returns the number of bits set to one.
|
reactor.core.publisher.Mono<Void> |
clear()
Set all bits to zero
|
reactor.core.publisher.Mono<Boolean> |
clear(long bitIndex)
Set bit to zero at specified
bitIndex |
reactor.core.publisher.Mono<Void> |
clear(long fromIndex,
long toIndex)
Set all bits to zero from
fromIndex (inclusive) to toIndex (exclusive) |
reactor.core.publisher.Mono<Boolean> |
get(long bitIndex)
Returns
true if bit set to one and false overwise. |
reactor.core.publisher.Mono<Long> |
length()
Returns "logical size" = index of highest set bit plus one.
|
reactor.core.publisher.Mono<Void> |
not()
Executes NOT operation over all bits
|
reactor.core.publisher.Mono<Void> |
or(String... bitSetNames)
Executes OR operation over this object and specified bitsets.
|
reactor.core.publisher.Mono<Void> |
set(BitSet bs)
Copy bits state of source BitSet object to this object
|
reactor.core.publisher.Mono<Boolean> |
set(long bitIndex)
Set bit to one at specified bitIndex
|
reactor.core.publisher.Mono<Boolean> |
set(long bitIndex,
boolean value)
Set bit to
value at specified bitIndex |
reactor.core.publisher.Mono<Void> |
set(long fromIndex,
long toIndex)
Set all bits to one from
fromIndex (inclusive) to toIndex (exclusive) |
reactor.core.publisher.Mono<Void> |
set(long fromIndex,
long toIndex,
boolean value)
Set all bits to
value from fromIndex (inclusive) to toIndex (exclusive) |
reactor.core.publisher.Mono<Long> |
size()
Returns number of set bits.
|
reactor.core.publisher.Mono<byte[]> |
toByteArray() |
reactor.core.publisher.Mono<Void> |
xor(String... bitSetNames)
Executes XOR operation over this object and specified bitsets.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
reactor.core.publisher.Mono<byte[]> toByteArray()
reactor.core.publisher.Mono<Long> length()
reactor.core.publisher.Mono<Void> set(long fromIndex, long toIndex, boolean value)
value
from fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusivevalue
- true = 1, false = 0reactor.core.publisher.Mono<Void> clear(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusivereactor.core.publisher.Mono<Void> set(BitSet bs)
bs
- - BitSet sourcereactor.core.publisher.Mono<Void> not()
reactor.core.publisher.Mono<Void> set(long fromIndex, long toIndex)
fromIndex
(inclusive) to toIndex
(exclusive)fromIndex
- inclusivetoIndex
- exclusivereactor.core.publisher.Mono<Long> size()
reactor.core.publisher.Mono<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.reactor.core.publisher.Mono<Boolean> set(long bitIndex)
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falsereactor.core.publisher.Mono<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 falsereactor.core.publisher.Mono<Long> cardinality()
reactor.core.publisher.Mono<Boolean> clear(long bitIndex)
bitIndex
bitIndex
- - index of bittrue
- if previous value was true,
false
- if previous value was falsereactor.core.publisher.Mono<Void> clear()
reactor.core.publisher.Mono<Void> or(String... bitSetNames)
bitSetNames
- - name of stored bitsetsreactor.core.publisher.Mono<Void> and(String... bitSetNames)
bitSetNames
- - name of stored bitsetsCopyright © 2014–2020 Redisson. All rights reserved.