MapExp Methods

Aerospike

The MapExp type exposes the following members.

Methods

  NameDescription
Public methodStatic memberClear
Create expression that removes all items in map.
Public methodStatic memberGetByIndex
Create expression that selects map item identified by index and returns selected data specified by returnType.
Public methodStatic memberGetByIndexRange(MapReturnType, Exp, Exp, CTX)
Create expression that selects map items starting at specified index to the end of map and returns selected data specified by returnType.
Public methodStatic memberGetByIndexRange(MapReturnType, Exp, Exp, Exp, CTX)
Create expression that selects "count" map items starting at specified index and returns selected data specified by returnType.
Public methodStatic memberCode exampleGetByKey
Create expression that selects map item identified by key and returns selected data specified by returnType.
Public methodStatic memberGetByKeyList
Create expression that selects map items identified by keys and returns selected data specified by returnType.
Public methodStatic memberGetByKeyRange
Create expression that selects map items identified by key range (keyBegin inclusive, keyEnd exclusive). If keyBegin is null, the range is less than keyEnd. If keyEnd is null, the range is greater than equal to keyBegin.

Expression returns selected data specified by returnType.

Public methodStatic memberGetByKeyRelativeIndexRange(MapReturnType, Exp, Exp, Exp, CTX)
Create expression that selects map items nearest to key and greater by index. Expression returns selected data specified by returnType.

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

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

Public methodStatic memberGetByKeyRelativeIndexRange(MapReturnType, Exp, Exp, Exp, Exp, CTX)
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}]

Public methodStatic memberGetByRank
Create expression that selects map item identified by rank and returns selected data specified by returnType.
Public methodStatic memberGetByRankRange(MapReturnType, Exp, Exp, CTX)
Create expression that selects map items starting at specified rank to the last ranked item and returns selected data specified by returnType.
Public methodStatic memberGetByRankRange(MapReturnType, Exp, Exp, Exp, CTX)
Create expression that selects "count" map items starting at specified rank and returns selected data specified by returnType.
Public methodStatic memberCode exampleGetByValue
Create expression that selects map items identified by value and returns selected data specified by returnType.
Public methodStatic memberGetByValueList
Create expression that selects map items identified by values and returns selected data specified by returnType.
Public methodStatic memberGetByValueRange
Create expression that selects map items identified by value range (valueBegin inclusive, valueEnd exclusive) If valueBegin is null, the range is less than valueEnd. If valueEnd is null, the range is greater than equal to valueBegin.

Expression returns selected data specified by returnType.

Public methodStatic memberGetByValueRelativeRankRange(MapReturnType, Exp, Exp, Exp, CTX)
Create expression that selects map items nearest to value and greater by relative rank. Expression returns selected data specified by returnType.

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

  • (value,rank) = [selected items]
  • (11,1) = [{0=17}]
  • (11,-1) = [{9=10},{5=15},{0=17}]

Public methodStatic memberGetByValueRelativeRankRange(MapReturnType, Exp, Exp, Exp, Exp, CTX)
Create expression that selects map items nearest to value and greater by relative rank with a count limit. Expression returns selected data specified by returnType.

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

  • (value,rank,count) = [selected items]
  • (11,1,1) = [{0=17}]
  • (11,-1,1) = [{9=10}]

Public methodStatic memberIncrement
Create expression that increments values by incr for all items identified by key. Valid only for numbers.
Public methodStatic memberPut
Create expression that writes key/value item to map bin.
Public methodStatic memberPutItems
Create expression that writes each map item to map bin.
Public methodStatic memberRemoveByIndex
Create expression that removes map item identified by index.
Public methodStatic memberRemoveByIndexRange(Exp, Exp, CTX)
Create expression that removes map items starting at specified index to the end of map.
Public methodStatic memberRemoveByIndexRange(Exp, Exp, Exp, CTX)
Create expression that removes "count" map items starting at specified index.
Public methodStatic memberRemoveByKey
Create expression that removes map item identified by key.
Public methodStatic memberRemoveByKeyList
Create expression that removes map items identified by keys.
Public methodStatic memberRemoveByKeyRange
Create expression that removes map items identified by key range (keyBegin inclusive, keyEnd exclusive). If keyBegin is null, the range is less than keyEnd. If keyEnd is null, the range is greater than equal to keyBegin.
Public methodStatic memberRemoveByKeyRelativeIndexRange(Exp, Exp, Exp, CTX)
Create expression that removes map items nearest to key and greater by index.

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

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

Public methodStatic memberRemoveByKeyRelativeIndexRange(Exp, Exp, Exp, Exp, CTX)
Create expression that removes map items nearest to key and greater by index with a count limit.

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

  • (value,index,count) = [removed 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}]

Public methodStatic memberRemoveByRank
Create expression that removes map item identified by rank.
Public methodStatic memberRemoveByRankRange(Exp, Exp, CTX)
Create expression that removes map items starting at specified rank to the last ranked item.
Public methodStatic memberRemoveByRankRange(Exp, Exp, Exp, CTX)
Create expression that removes "count" map items starting at specified rank.
Public methodStatic memberRemoveByValue
Create expression that removes map items identified by value.
Public methodStatic memberRemoveByValueList
Create expression that removes map items identified by values.
Public methodStatic memberRemoveByValueRange
Create expression that removes map items identified by value range (valueBegin inclusive, valueEnd exclusive). If valueBegin is null, the range is less than valueEnd. If valueEnd is null, the range is greater than equal to valueBegin.
Public methodStatic memberRemoveByValueRelativeRankRange(Exp, Exp, Exp, CTX)
Create expression that removes map items nearest to value and greater by relative rank.

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

  • (value,rank) = [removed items]
  • (11,1) = [{0=17}]
  • (11,-1) = [{9=10},{5=15},{0=17}]

Public methodStatic memberRemoveByValueRelativeRankRange(Exp, Exp, Exp, Exp, CTX)
Create expression that removes map items nearest to value and greater by relative rank with a count limit.

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

  • (value,rank,count) = [removed items]
  • (11,1,1) = [{0=17}]
  • (11,-1,1) = [{9=10}]

Public methodStatic memberCode exampleSize
Create expression that returns list size.
Top
See Also

Reference