public interface RBitSetAsync extends RExpirableAsync
| Modifier and Type | Method and Description |
|---|---|
RFuture<Void> |
andAsync(String... bitSetNames)
Executes AND operation over this object and specified bitsets.
|
RFuture<Long> |
cardinalityAsync()
Returns the number of bits set to one.
|
RFuture<Void> |
clearAsync()
Set all bits to zero
|
RFuture<Boolean> |
clearAsync(long bitIndex)
Set bit to zero at specified
bitIndex |
RFuture<Void> |
clearAsync(long fromIndex,
long toIndex)
Set all bits to zero from
fromIndex (inclusive) to toIndex (exclusive) |
RFuture<Boolean> |
getAsync(long bitIndex)
Returns
true if bit set to one and false overwise. |
RFuture<Long> |
lengthAsync()
Returns "logical size" = index of highest set bit plus one.
|
RFuture<Void> |
notAsync()
Executes NOT operation over all bits
|
RFuture<Void> |
orAsync(String... bitSetNames)
Executes OR operation over this object and specified bitsets.
|
RFuture<Void> |
setAsync(BitSet bs)
Copy bits state of source BitSet object to this object
|
RFuture<Boolean> |
setAsync(long bitIndex)
Set bit to one at specified bitIndex
|
RFuture<Boolean> |
setAsync(long bitIndex,
boolean value)
Set bit to
value at specified bitIndex |
RFuture<Void> |
setAsync(long fromIndex,
long toIndex)
Set all bits to one from
fromIndex (inclusive) to toIndex (exclusive) |
RFuture<Void> |
setAsync(long fromIndex,
long toIndex,
boolean value)
Set all bits to
value from fromIndex (inclusive) to toIndex (exclusive) |
RFuture<Long> |
sizeAsync()
Returns number of set bits.
|
RFuture<byte[]> |
toByteArrayAsync() |
RFuture<Void> |
xorAsync(String... bitSetNames)
Executes XOR operation over this object and specified bitsets.
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncRFuture<byte[]> toByteArrayAsync()
RFuture<Long> lengthAsync()
RFuture<Void> setAsync(long fromIndex, long toIndex, boolean value)
value from fromIndex (inclusive) to toIndex (exclusive)fromIndex - inclusivetoIndex - exclusivevalue - true = 1, false = 0RFuture<Void> clearAsync(long fromIndex, long toIndex)
fromIndex (inclusive) to toIndex (exclusive)fromIndex - inclusivetoIndex - exclusiveRFuture<Void> setAsync(BitSet bs)
bs - - BitSet sourceRFuture<Void> setAsync(long fromIndex, long toIndex)
fromIndex (inclusive) to toIndex (exclusive)fromIndex - inclusivetoIndex - exclusiveRFuture<Boolean> getAsync(long bitIndex)
true if bit set to one and false overwise.bitIndex - - index of bittrue if bit set to one and false overwise.RFuture<Boolean> setAsync(long bitIndex)
bitIndex - - index of bittrue - if previous value was true,
false - if previous value was falseRFuture<Boolean> setAsync(long bitIndex, boolean value)
value at specified bitIndexbitIndex - - index of bitvalue - true = 1, false = 0true - if previous value was true,
false - if previous value was falseRFuture<Long> cardinalityAsync()
RFuture<Boolean> clearAsync(long bitIndex)
bitIndexbitIndex - - index of bittrue - if previous value was true,
false - if previous value was falseRFuture<Void> orAsync(String... bitSetNames)
bitSetNames - - name of stored bitsetsRFuture<Void> andAsync(String... bitSetNames)
bitSetNames - - name of stored bitsetsCopyright © 2014–2018 The Redisson Project. All rights reserved.