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<Byte> |
getByteAsync(long offset)
Returns byte number at specified
offset |
RFuture<Integer> |
getIntegerAsync(long offset)
Returns integer number at specified
offset |
RFuture<Long> |
getLongAsync(long offset)
Returns long number at specified
offset |
RFuture<Short> |
getShortAsync(long offset)
Returns short number at specified
offset |
RFuture<Long> |
getSignedAsync(int size,
long offset)
Returns signed number at specified
offset and size |
RFuture<Long> |
getUnsignedAsync(int size,
long offset)
Returns unsigned number at specified
offset and size |
RFuture<Byte> |
incrementAndGetByteAsync(long offset,
byte increment)
Increments current byte value on defined
increment value at specified offset
and returns result. |
RFuture<Integer> |
incrementAndGetIntegerAsync(long offset,
int increment)
Increments current integer value on defined
increment value at specified offset
and returns result. |
RFuture<Long> |
incrementAndGetLongAsync(long offset,
long increment)
Increments current long value on defined
increment value at specified offset
and returns result. |
RFuture<Short> |
incrementAndGetShortAsync(long offset,
short increment)
Increments current short value on defined
increment value at specified offset
and returns result. |
RFuture<Long> |
incrementAndGetSignedAsync(int size,
long offset,
long increment)
Increments current signed value by
defined
increment value and size
at specified offset
and returns result. |
RFuture<Long> |
incrementAndGetUnsignedAsync(int size,
long offset,
long increment)
Increments current unsigned value by
defined
increment value and size
at specified offset
and returns result. |
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<Byte> |
setByteAsync(long offset,
byte value)
Returns previous value of byte number and replaces it
with defined
value at specified offset |
RFuture<Integer> |
setIntegerAsync(long offset,
int value)
Returns previous value of integer number and replaces it
with defined
value at specified offset |
RFuture<Long> |
setLongAsync(long offset,
long value)
Returns previous value of long number and replaces it
with defined
value at specified offset |
RFuture<Short> |
setShortAsync(long offset,
short value)
Returns previous value of short number and replaces it
with defined
value at specified offset |
RFuture<Long> |
setSignedAsync(int size,
long offset,
long value)
Returns previous value of signed number and replaces it
with defined
value at specified offset |
RFuture<Long> |
setUnsignedAsync(int size,
long offset,
long value)
Returns previous value of unsigned number and replaces it
with defined
value at specified offset |
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, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RFuture<Long> getSignedAsync(int size, long offset)
offset
and size
size
- - size of signed number up to 64 bitsoffset
- - offset of signed numberRFuture<Long> setSignedAsync(int size, long offset, long value)
value
at specified offset
size
- - size of signed number up to 64 bitsoffset
- - offset of signed numbervalue
- - value of signed numberRFuture<Long> incrementAndGetSignedAsync(int size, long offset, long increment)
increment
value and size
at specified offset
and returns result.size
- - size of signed number up to 64 bitsoffset
- - offset of signed numberincrement
- - increment valueRFuture<Long> getUnsignedAsync(int size, long offset)
offset
and size
size
- - size of unsigned number up to 63 bitsoffset
- - offset of unsigned numberRFuture<Long> setUnsignedAsync(int size, long offset, long value)
value
at specified offset
size
- - size of unsigned number up to 63 bitsoffset
- - offset of unsigned numbervalue
- - value of unsigned numberRFuture<Long> incrementAndGetUnsignedAsync(int size, long offset, long increment)
increment
value and size
at specified offset
and returns result.size
- - size of unsigned number up to 63 bitsoffset
- - offset of unsigned numberincrement
- - increment valueRFuture<Byte> getByteAsync(long offset)
offset
offset
- - offset of numberRFuture<Byte> setByteAsync(long offset, byte value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberRFuture<Byte> incrementAndGetByteAsync(long offset, byte increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueRFuture<Short> getShortAsync(long offset)
offset
offset
- - offset of numberRFuture<Short> setShortAsync(long offset, short value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberRFuture<Short> incrementAndGetShortAsync(long offset, short increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueRFuture<Integer> getIntegerAsync(long offset)
offset
offset
- - offset of numberRFuture<Integer> setIntegerAsync(long offset, int value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberRFuture<Integer> incrementAndGetIntegerAsync(long offset, int increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueRFuture<Long> getLongAsync(long offset)
offset
offset
- - offset of numberRFuture<Long> setLongAsync(long offset, long value)
value
at specified offset
offset
- - offset of numbervalue
- - value of numberRFuture<Long> incrementAndGetLongAsync(long offset, long increment)
increment
value at specified offset
and returns result.offset
- - offset of numberincrement
- - increment valueRFuture<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 bitIndex
bitIndex
- - 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)
bitIndex
bitIndex
- - 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–2021 Redisson. All rights reserved.