Function aerospike::expressions::lists::remove_by_value_relative_rank_range
source · pub fn remove_by_value_relative_rank_range(
value: FilterExpression,
rank: FilterExpression,
bin: FilterExpression,
ctx: &[CdtContext]
) -> FilterExpression
Expand description
Create expression that removes list items nearest to value and greater by relative rank.
Examples for ordered list [0, 4, 5, 9, 11, 15]:
(value,rank) = [removed items]
(5,0) = [5,9,11,15]
(5,1) = [9,11,15]
(5,-1) = [4,5,9,11,15]
(3,0) = [4,5,9,11,15]
(3,3) = [11,15]
(3,-3) = [0,4,5,9,11,15]