Interface IReactiveVirtualList<E>
- All Known Implementing Classes:
ReactiveVirtualList
public interface IReactiveVirtualList<E>
-
Method Summary
Modifier and Type Method Description reactor.core.publisher.Mono<Long>
append(com.aerospike.client.policy.WritePolicy writePolicy, E element)
Append a new element at the end of the virtual list.reactor.core.publisher.Mono<Long>
append(E element)
Append a new element at the end of the virtual list.reactor.core.publisher.Mono<Void>
clear()
Remove all the items in the virtual list.reactor.core.publisher.Mono<E>
get(int index)
Get an element from the virtual list at a specific index.reactor.core.publisher.Mono<E>
get(com.aerospike.client.policy.Policy policy, int index)
Get an element from the virtual list at a specific index.reactor.core.publisher.Mono<E>
getByIndexRange(int index, int count, ReturnType returnResultsOfType)
Get "count" items starting at specified index.reactor.core.publisher.Mono<E>
getByIndexRange(int index, ReturnType returnResultsOfType)
Get items starting at specified index to the end of virtual list.reactor.core.publisher.Mono<E>
getByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, int count, ReturnType returnResultsOfType)
Get "count" items starting at specified index.reactor.core.publisher.Mono<E>
getByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, ReturnType returnResultsOfType)
Get items starting at specified index to the end of virtual list.reactor.core.publisher.Mono<E>
getByKey(com.aerospike.client.policy.WritePolicy writePolicy, Object key, ReturnType returnResultsOfType)
Get items from the list matching the specified key.reactor.core.publisher.Mono<E>
getByKey(Object key, ReturnType returnResultsOfType)
Get items from the list matching the specified key.reactor.core.publisher.Mono<E>
getByKeyRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startKey, Object endKey, ReturnType returnResultsOfType)
Get items from the list matching the specified key range.reactor.core.publisher.Mono<E>
getByKeyRange(Object startKey, Object endKey, ReturnType returnResultsOfType)
Get items from the list matching the specified key range.reactor.core.publisher.Mono<E>
getByRank(int rank, ReturnType returnResultsOfType)
Get items identified by rank.reactor.core.publisher.Mono<E>
getByRank(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)
Get items identified by rank.reactor.core.publisher.Mono<E>
getByRankRange(int rank, int count, ReturnType returnResultsOfType)
Get "count" items starting at specified rank to the last ranked item.reactor.core.publisher.Mono<E>
getByRankRange(int rank, ReturnType returnResultsOfType)
Get items starting at specified rank to the last ranked item.reactor.core.publisher.Mono<E>
getByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, int count, ReturnType returnResultsOfType)
Get "count" items starting at specified rank to the last ranked item.reactor.core.publisher.Mono<E>
getByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)
Get items starting at specified rank to the last ranked item.reactor.core.publisher.Mono<E>
getByValue(com.aerospike.client.policy.WritePolicy writePolicy, Object value, ReturnType returnResultsOfType)
Get items from the list matching the specified value.reactor.core.publisher.Mono<E>
getByValue(Object value, ReturnType returnResultsOfType)
Get items from the list matching the specified value.reactor.core.publisher.Mono<E>
getByValueList(com.aerospike.client.policy.WritePolicy writePolicy, List<Object> values, ReturnType returnResultsOfType)
Get items from the list matching the specified list of values.reactor.core.publisher.Mono<E>
getByValueList(List<Object> values, ReturnType returnResultsOfType)
Get items from the list matching the specified list of values.reactor.core.publisher.Mono<E>
getByValueRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startValue, Object endValue, ReturnType returnResultsOfType)
Get items from the list matching the specified value.reactor.core.publisher.Mono<E>
getByValueRange(Object startValue, Object endValue, ReturnType returnResultsOfType)
Get items from the list matching the specified value.reactor.core.publisher.Mono<E>
getByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, int count, ReturnType returnResultsOfType)
Get items nearest to value and greater by relative rank with a count limit.reactor.core.publisher.Mono<E>
getByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, ReturnType returnResultsOfType)
Get items nearest to value and greater by relative rank.reactor.core.publisher.Mono<E>
getByValueRelativeRankRange(Object value, int rank, int count, ReturnType returnResultsOfType)
Get items nearest to value and greater by relative rank with a count limit.reactor.core.publisher.Mono<E>
getByValueRelativeRankRange(Object value, int rank, ReturnType returnResultsOfType)
Get items nearest to value and greater by relative rank.reactor.core.publisher.Mono<E>
removeByIndex(int index, ReturnType returnResultsOfType)
Remove item identified by index and returns removed data.reactor.core.publisher.Mono<E>
removeByIndex(com.aerospike.client.policy.WritePolicy writePolicy, int index, ReturnType returnResultsOfType)
Remove item identified by index and returns removed data.reactor.core.publisher.Mono<E>
removeByIndexRange(int index, int count, ReturnType returnResultsOfType)
Remove "count" items starting at specified index and returns removed data.reactor.core.publisher.Mono<E>
removeByIndexRange(int index, ReturnType returnResultsOfType)
Remove items starting at specified index to the end of list and returns removed data.reactor.core.publisher.Mono<E>
removeByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, int count, ReturnType returnResultsOfType)
Remove "count" items starting at specified index and returns removed data.reactor.core.publisher.Mono<E>
removeByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, ReturnType returnResultsOfType)
Remove items starting at specified index to the end of list and returns removed data.reactor.core.publisher.Mono<E>
removeByKey(com.aerospike.client.policy.WritePolicy writePolicy, Object key, ReturnType returnResultsOfType)
Remove items from the list matching the specified key.reactor.core.publisher.Mono<E>
removeByKey(Object key, ReturnType returnResultsOfType)
Remove items from the list matching the specified key.reactor.core.publisher.Mono<E>
removeByKeyRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startKey, Object endKey, ReturnType returnResultsOfType)
Remove items from the list matching the specified key.reactor.core.publisher.Mono<E>
removeByKeyRange(Object startKey, Object endKey, ReturnType returnResultsOfType)
Remove items from the list matching the specified key.reactor.core.publisher.Mono<E>
removeByRank(int rank, ReturnType returnResultsOfType)
Remove item identified by rank and returns removed data.reactor.core.publisher.Mono<E>
removeByRank(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)
Remove item identified by rank and returns removed data.reactor.core.publisher.Mono<E>
removeByRankRange(int rank, int count, ReturnType returnResultsOfType)
Remove "count" items starting at specified rank and returns removed data.reactor.core.publisher.Mono<E>
removeByRankRange(int rank, ReturnType returnResultsOfType)
Remove items starting at specified rank to the last ranked item and returns removed data.reactor.core.publisher.Mono<E>
removeByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, int count, ReturnType returnResultsOfType)
Remove "count" items starting at specified rank and returns removed data.reactor.core.publisher.Mono<E>
removeByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)
Remove items starting at specified rank to the last ranked item and returns removed data.reactor.core.publisher.Mono<E>
removeByValue(com.aerospike.client.policy.WritePolicy writePolicy, Object value, ReturnType returnResultsOfType)
Remove items identified by value and returns the removed data.reactor.core.publisher.Mono<E>
removeByValue(Object value, ReturnType returnResultsOfType)
Remove items identified by value and returns the removed data.reactor.core.publisher.Mono<E>
removeByValueList(com.aerospike.client.policy.WritePolicy writePolicy, List<Object> values, ReturnType returnResultsOfType)
Remove items identified by list of values and returns the removed data.reactor.core.publisher.Mono<E>
removeByValueList(List<Object> values, ReturnType returnResultsOfType)
Remove items identified by list of values and returns the removed data.reactor.core.publisher.Mono<E>
removeByValueRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startValue, Object endValue, ReturnType returnResultsOfType)
Remove items from the list matching the specified value.reactor.core.publisher.Mono<E>
removeByValueRange(Object startValue, Object endValue, ReturnType returnResultsOfType)
Remove items from the list matching the specified value.reactor.core.publisher.Mono<E>
removeByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, int count, ReturnType returnResultsOfType)
Remove items nearest to value and greater by relative rank with a count limit.reactor.core.publisher.Mono<E>
removeByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, ReturnType returnResultsOfType)
Remove items nearest to value and greater by relative rank.reactor.core.publisher.Mono<E>
removeByValueRelativeRankRange(Object value, int rank, int count, ReturnType returnResultsOfType)
Remove items nearest to value and greater by relative rank with a count limit.reactor.core.publisher.Mono<E>
removeByValueRelativeRankRange(Object value, int rank, ReturnType returnResultsOfType)
Remove items nearest to value and greater by relative rank.reactor.core.publisher.Mono<Long>
size(com.aerospike.client.policy.Policy policy)
Get the size of the virtual list (number of elements)
-
Method Details
-
getByValue
Get items from the list matching the specified value.- Parameters:
value
- The value to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given value.
-
getByValue
reactor.core.publisher.Mono<E> getByValue(com.aerospike.client.policy.WritePolicy writePolicy, Object value, ReturnType returnResultsOfType)Get items from the list matching the specified value.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.value
- The value to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given value.
-
getByValueRange
reactor.core.publisher.Mono<E> getByValueRange(Object startValue, Object endValue, ReturnType returnResultsOfType)Get items from the list matching the specified value. If the list is mapped to a MAP in Aerospike, the start value and end value will dictate the range of values to get, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to get from the list.- Parameters:
startValue
- Start value of the range to get.endValue
- End value of the range to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given value range.
-
getByValueRange
reactor.core.publisher.Mono<E> getByValueRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startValue, Object endValue, ReturnType returnResultsOfType)Get items from the list matching the specified value. If the list is mapped to a MAP in Aerospike, the start value and end value will dictate the range of values to get, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to get from the list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.startValue
- Start value of the range to get.endValue
- End value of the range to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given value range.
-
getByValueList
Get items from the list matching the specified list of values.- Parameters:
values
- The list of values to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given list of values.
-
getByValueList
reactor.core.publisher.Mono<E> getByValueList(com.aerospike.client.policy.WritePolicy writePolicy, List<Object> values, ReturnType returnResultsOfType)Get items from the list matching the specified list of values.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.values
- The list of values to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given list of values.
-
getByValueRelativeRankRange
reactor.core.publisher.Mono<E> getByValueRelativeRankRange(Object value, int rank, ReturnType returnResultsOfType)Get items nearest to value and greater by relative rank.- Parameters:
value
- The value to base the relative rank range calculation on.rank
- The relative rank.returnResultsOfType
- Type to return.- Returns:
- A list of records that matches the given value and rank.
-
getByValueRelativeRankRange
reactor.core.publisher.Mono<E> getByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, ReturnType returnResultsOfType)Get items nearest to value and greater by relative rank.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.value
- The value to base the relative rank range calculation on.rank
- The relative rank.returnResultsOfType
- Type to return.- Returns:
- A list of records that matches the given value and rank.
-
getByValueRelativeRankRange
reactor.core.publisher.Mono<E> getByValueRelativeRankRange(Object value, int rank, int count, ReturnType returnResultsOfType)Get items nearest to value and greater by relative rank with a count limit.- Parameters:
value
- The value to base the relative rank range calculation on.rank
- The relative rank.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of records that matches the given value, rank and count.
-
getByValueRelativeRankRange
reactor.core.publisher.Mono<E> getByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, int count, ReturnType returnResultsOfType)Get items nearest to value and greater by relative rank with a count limit.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.value
- The value to base the relative rank range calculation on.rank
- The relative rank.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of records that matches the given value, rank and count.
-
getByIndexRange
Get items starting at specified index to the end of virtual list.- Parameters:
index
- The start index to get items from to the end of the virtual list.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given index.
-
getByIndexRange
reactor.core.publisher.Mono<E> getByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, ReturnType returnResultsOfType)Get items starting at specified index to the end of virtual list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.index
- The start index to get items from to the end of the virtual list.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given index.
-
getByIndexRange
reactor.core.publisher.Mono<E> getByIndexRange(int index, int count, ReturnType returnResultsOfType)Get "count" items starting at specified index.- Parameters:
index
- The start index to get the "count" items from.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given index and count.
-
getByIndexRange
reactor.core.publisher.Mono<E> getByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, int count, ReturnType returnResultsOfType)Get "count" items starting at specified index.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.index
- The start index to get the "count" items from.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given index and count.
-
getByRank
Get items identified by rank.- Parameters:
rank
- The rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given rank.
-
getByRank
reactor.core.publisher.Mono<E> getByRank(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)Get items identified by rank.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.rank
- The rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given rank.
-
getByRankRange
Get items starting at specified rank to the last ranked item.- Parameters:
rank
- The starting rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given rank.
-
getByRankRange
reactor.core.publisher.Mono<E> getByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)Get items starting at specified rank to the last ranked item.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.rank
- The starting rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given rank.
-
getByRankRange
Get "count" items starting at specified rank to the last ranked item.- Parameters:
rank
- The starting rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given rank and count.
-
getByRankRange
reactor.core.publisher.Mono<E> getByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, int count, ReturnType returnResultsOfType)Get "count" items starting at specified rank to the last ranked item.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.rank
- The starting rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given rank and count.
-
getByKey
Get items from the list matching the specified key. If the list is mapped to a MAP in Aerospike, It will get the matching key. If the list is mapped to a LIST in Aerospike however, it will get the matching value.- Parameters:
key
- Key to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given key range.
-
getByKey
reactor.core.publisher.Mono<E> getByKey(com.aerospike.client.policy.WritePolicy writePolicy, Object key, ReturnType returnResultsOfType)Get items from the list matching the specified key. If the list is mapped to a MAP in Aerospike, It will get the matching key. If the list is mapped to a LIST in Aerospike however, it will get the matching value.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.key
- Key to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given key range.
-
getByKeyRange
reactor.core.publisher.Mono<E> getByKeyRange(Object startKey, Object endKey, ReturnType returnResultsOfType)Get items from the list matching the specified key range. If the list is mapped to a MAP in Aerospike, the start key and end key will dictate the range of keys to get, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to get from the list.- Parameters:
startKey
- Start key of the range to get.endKey
- End key of the range to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given key range.
-
getByKeyRange
reactor.core.publisher.Mono<E> getByKeyRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startKey, Object endKey, ReturnType returnResultsOfType)Get items from the list matching the specified key range. If the list is mapped to a MAP in Aerospike, the start key and end key will dictate the range of keys to get, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to get from the list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.startKey
- Start key of the range to get.endKey
- End key of the range to get.returnResultsOfType
- Type to return.- Returns:
- A list of the records which match the given key range.
-
removeByKey
Remove items from the list matching the specified key. If the list is mapped to a MAP in Aerospike, the key will dictate the map key to be removed. If the list is mapped to a LIST in Aerospike however, the given key will use as the value to remove from the list.- Parameters:
key
- Key to remove.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByKey
reactor.core.publisher.Mono<E> removeByKey(com.aerospike.client.policy.WritePolicy writePolicy, Object key, ReturnType returnResultsOfType)Remove items from the list matching the specified key. If the list is mapped to a MAP in Aerospike, the key will dictate the map key to be removed. If the list is mapped to a LIST in Aerospike however, the given key will use as the value to remove from the list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.key
- Key to remove.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValue
Remove items identified by value and returns the removed data.- Parameters:
value
- The value to base the items to remove on.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValue
reactor.core.publisher.Mono<E> removeByValue(com.aerospike.client.policy.WritePolicy writePolicy, Object value, ReturnType returnResultsOfType)Remove items identified by value and returns the removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.value
- The value to base the items to remove on.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueList
reactor.core.publisher.Mono<E> removeByValueList(List<Object> values, ReturnType returnResultsOfType)Remove items identified by list of values and returns the removed data.- Parameters:
values
- The list of values to base the items to remove on.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueList
reactor.core.publisher.Mono<E> removeByValueList(com.aerospike.client.policy.WritePolicy writePolicy, List<Object> values, ReturnType returnResultsOfType)Remove items identified by list of values and returns the removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.values
- The list of values to base the items to remove on.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueRange
reactor.core.publisher.Mono<E> removeByValueRange(Object startValue, Object endValue, ReturnType returnResultsOfType)Remove items from the list matching the specified value. If the list is mapped to a MAP in Aerospike, the start value and end value will dictate the range of values to be removed, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to removed from the list.- Parameters:
startValue
- Start value of the range to remove.endValue
- End value of the range to remove.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueRange
reactor.core.publisher.Mono<E> removeByValueRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startValue, Object endValue, ReturnType returnResultsOfType)Remove items from the list matching the specified value. If the list is mapped to a MAP in Aerospike, the start value and end value will dictate the range of values to be removed, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to be removed from the list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.startValue
- Start value of the range to remove.endValue
- End value of the range to remove.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueRelativeRankRange
reactor.core.publisher.Mono<E> removeByValueRelativeRankRange(Object value, int rank, ReturnType returnResultsOfType)Remove items nearest to value and greater by relative rank.- Parameters:
value
- The value to base the items to remove on.rank
- The rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueRelativeRankRange
reactor.core.publisher.Mono<E> removeByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, ReturnType returnResultsOfType)Remove items nearest to value and greater by relative rank.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.value
- The value to base the items to remove on.rank
- The rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueRelativeRankRange
reactor.core.publisher.Mono<E> removeByValueRelativeRankRange(Object value, int rank, int count, ReturnType returnResultsOfType)Remove items nearest to value and greater by relative rank with a count limit.- Parameters:
value
- The value to base the items to remove on.rank
- The rank.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByValueRelativeRankRange
reactor.core.publisher.Mono<E> removeByValueRelativeRankRange(com.aerospike.client.policy.WritePolicy writePolicy, Object value, int rank, int count, ReturnType returnResultsOfType)Remove items nearest to value and greater by relative rank with a count limit.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.value
- The value to base the items to remove on.rank
- The rank.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByIndex
Remove item identified by index and returns removed data.- Parameters:
index
- The index to remove the item from.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByIndex
reactor.core.publisher.Mono<E> removeByIndex(com.aerospike.client.policy.WritePolicy writePolicy, int index, ReturnType returnResultsOfType)Remove item identified by index and returns removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.index
- The index to remove the item from.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByIndexRange
Remove items starting at specified index to the end of list and returns removed data.- Parameters:
index
- The start index to remove the item from.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByIndexRange
reactor.core.publisher.Mono<E> removeByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, ReturnType returnResultsOfType)Remove items starting at specified index to the end of list and returns removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.index
- The start index to remove the item from.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByIndexRange
reactor.core.publisher.Mono<E> removeByIndexRange(int index, int count, ReturnType returnResultsOfType)Remove "count" items starting at specified index and returns removed data.- Parameters:
index
- The start index to remove the item from.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByIndexRange
reactor.core.publisher.Mono<E> removeByIndexRange(com.aerospike.client.policy.WritePolicy writePolicy, int index, int count, ReturnType returnResultsOfType)Remove "count" items starting at specified index and returns removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.index
- The start index to remove the item from.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByRank
Remove item identified by rank and returns removed data.- Parameters:
rank
- The rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByRank
reactor.core.publisher.Mono<E> removeByRank(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)Remove item identified by rank and returns removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.rank
- The rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByRankRange
Remove items starting at specified rank to the last ranked item and returns removed data.- Parameters:
rank
- The starting rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByRankRange
reactor.core.publisher.Mono<E> removeByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, ReturnType returnResultsOfType)Remove items starting at specified rank to the last ranked item and returns removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.rank
- The starting rank.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByRankRange
reactor.core.publisher.Mono<E> removeByRankRange(int rank, int count, ReturnType returnResultsOfType)Remove "count" items starting at specified rank and returns removed data.- Parameters:
rank
- The starting rank.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByRankRange
reactor.core.publisher.Mono<E> removeByRankRange(com.aerospike.client.policy.WritePolicy writePolicy, int rank, int count, ReturnType returnResultsOfType)Remove "count" items starting at specified rank and returns removed data.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.rank
- The starting rank.count
- The count limit.returnResultsOfType
- Type to return.- Returns:
- A list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByKeyRange
reactor.core.publisher.Mono<E> removeByKeyRange(Object startKey, Object endKey, ReturnType returnResultsOfType)Remove items from the list matching the specified key. If the list is mapped to a MAP in Aerospike, the start key and end key will dictate the range of keys to be removed, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to be removed from the list.- Parameters:
startKey
- Start key of the range to remove.endKey
- End key of the range to remove.returnResultsOfType
- Type to return.- Returns:
- The result of the method is a list of the records which have been removed from the database if returnResults is true, null otherwise.
-
removeByKeyRange
reactor.core.publisher.Mono<E> removeByKeyRange(com.aerospike.client.policy.WritePolicy writePolicy, Object startKey, Object endKey, ReturnType returnResultsOfType)Remove items from the list matching the specified key. If the list is mapped to a MAP in Aerospike, the start key and end key will dictate the range of keys to be removed, inclusive of the start, exclusive of the end. If the list is mapped to a LIST in Aerospike however, the start and end range represent values to be removed from the list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.startKey
- Start key of the range to remove.endKey
- End key of the range to remove.returnResultsOfType
- Type to return.- Returns:
- The result of the method is a list of the records which have been removed from the database if returnResults is true, null otherwise.
-
append
Append a new element at the end of the virtual list.- Parameters:
element
- The given element to append.- Returns:
- The list size.
-
append
reactor.core.publisher.Mono<Long> append(com.aerospike.client.policy.WritePolicy writePolicy, E element)Append a new element at the end of the virtual list.- Parameters:
writePolicy
- An Aerospike write policy to use for the operate() operation.element
- The given element to append.- Returns:
- The size of the list. If the record is not found, this method returns -1.
-
get
Get an element from the virtual list at a specific index.- Parameters:
index
- The index to get the item from.- Returns:
- The element to get from the virtual list.
-
get
Get an element from the virtual list at a specific index.- Parameters:
policy
- - The policy to use for the operate() operation.index
- The index to get the item from.- Returns:
- The element to get from the virtual list.
-
size
Get the size of the virtual list (number of elements)- Parameters:
policy
- - The policy to use for the operate() operation.- Returns:
- The size of the list. If the record is not found, this method returns -1.
-
clear
reactor.core.publisher.Mono<Void> clear()Remove all the items in the virtual list.
-