pub fn get_by_key_relative_index_range_count(
    return_type: MapReturnType,
    key: FilterExpression,
    index: FilterExpression,
    count: FilterExpression,
    bin: FilterExpression,
    ctx: &[CdtContext]
) -> FilterExpression
Expand description

Create expression that selects map items nearest to key and greater by index with a count limit. Expression returns selected data specified by returnType.

Examples for ordered map [{0=17},{4=2},{5=15},{9=10}]:

  • (value,index,count) = [selected items]
  • (5,0,1) = [{5=15}]
  • (5,1,2) = [{9=10}]
  • (5,-1,1) = [{4=2}]
  • (3,2,1) = [{9=10}]
  • (3,-2,2) = [{0=17}]