public class MapOperation extends Object
All maps maintain an index and a rank. The index is the item offset from the start of the map, for both unordered and ordered maps. The rank is the sorted index of the value component. Map supports negative indexing for index and rank.
Index examples:
Rank examples:
Constructor and Description |
---|
MapOperation() |
Modifier and Type | Method and Description |
---|---|
static Operation |
clear(String binName)
Create map clear operation.
|
static Operation |
decrement(MapPolicy policy,
String binName,
Value key,
Value decr)
Create map decrement operation.
|
static Operation |
getByIndex(String binName,
int index,
int returnType)
Create map get by index operation.
|
static Operation |
getByIndexRange(String binName,
int index,
int returnType)
Create map get by index range operation.
|
static Operation |
getByIndexRange(String binName,
int index,
int count,
int returnType)
Create map get by index range operation.
|
static Operation |
getByKey(String binName,
Value key,
int returnType)
Create map get by key operation.
|
static Operation |
getByKeyList(String binName,
List<Value> keys,
int returnType)
Create map get by key list operation.
|
static Operation |
getByKeyRange(String binName,
Value keyBegin,
Value keyEnd,
int returnType)
Create map get by key range operation.
|
static Operation |
getByKeyRelativeIndexRange(String binName,
Value key,
int index,
int returnType)
Create map get by key relative to index range operation.
|
static Operation |
getByKeyRelativeIndexRange(String binName,
Value key,
int index,
int count,
int returnType)
Create map get by key relative to index range operation.
|
static Operation |
getByRank(String binName,
int rank,
int returnType)
Create map get by rank operation.
|
static Operation |
getByRankRange(String binName,
int rank,
int returnType)
Create map get by rank range operation.
|
static Operation |
getByRankRange(String binName,
int rank,
int count,
int returnType)
Create map get by rank range operation.
|
static Operation |
getByValue(String binName,
Value value,
int returnType)
Create map get by value operation.
|
static Operation |
getByValueList(String binName,
List<Value> values,
int returnType)
Create map get by value list operation.
|
static Operation |
getByValueRange(String binName,
Value valueBegin,
Value valueEnd,
int returnType)
Create map get by value range operation.
|
static Operation |
getByValueRelativeRankRange(String binName,
Value value,
int rank,
int returnType)
Create map get by value relative to rank range operation.
|
static Operation |
getByValueRelativeRankRange(String binName,
Value value,
int rank,
int count,
int returnType)
Create map get by value relative to rank range operation.
|
static Operation |
increment(MapPolicy policy,
String binName,
Value key,
Value incr)
Create map increment operation.
|
static Operation |
put(MapPolicy policy,
String binName,
Value key,
Value value)
Create map put operation.
|
static Operation |
putItems(MapPolicy policy,
String binName,
Map<Value,Value> map)
Create map put items operation
Server writes each map item to map bin and returns map size.
|
static Operation |
removeByIndex(String binName,
int index,
int returnType)
Create map remove operation.
|
static Operation |
removeByIndexRange(String binName,
int index,
int returnType)
Create map remove operation.
|
static Operation |
removeByIndexRange(String binName,
int index,
int count,
int returnType)
Create map remove operation.
|
static Operation |
removeByKey(String binName,
Value key,
int returnType)
Create map remove operation.
|
static Operation |
removeByKeyList(String binName,
List<Value> keys,
int returnType)
Create map remove operation.
|
static Operation |
removeByKeyRange(String binName,
Value keyBegin,
Value keyEnd,
int returnType)
Create map remove operation.
|
static Operation |
removeByKeyRelativeIndexRange(String binName,
Value key,
int index,
int returnType)
Create map remove by key relative to index range operation.
|
static Operation |
removeByKeyRelativeIndexRange(String binName,
Value key,
int index,
int count,
int returnType)
Create map remove by key relative to index range operation.
|
static Operation |
removeByRank(String binName,
int rank,
int returnType)
Create map remove operation.
|
static Operation |
removeByRankRange(String binName,
int rank,
int returnType)
Create map remove operation.
|
static Operation |
removeByRankRange(String binName,
int rank,
int count,
int returnType)
Create map remove operation.
|
static Operation |
removeByValue(String binName,
Value value,
int returnType)
Create map remove operation.
|
static Operation |
removeByValueList(String binName,
List<Value> values,
int returnType)
Create map remove operation.
|
static Operation |
removeByValueRange(String binName,
Value valueBegin,
Value valueEnd,
int returnType)
Create map remove operation.
|
static Operation |
removeByValueRelativeRankRange(String binName,
Value value,
int rank,
int returnType)
Create map remove by value relative to rank range operation.
|
static Operation |
removeByValueRelativeRankRange(String binName,
Value value,
int rank,
int count,
int returnType)
Create map remove by value relative to rank range operation.
|
static Operation |
setMapPolicy(MapPolicy policy,
String binName)
Create set map policy operation.
|
static Operation |
size(String binName)
Create map size operation.
|
public static Operation setMapPolicy(MapPolicy policy, String binName)
The required map policy attributes can be changed after the map is created.
public static Operation put(MapPolicy policy, String binName, Value key, Value value)
The required map policy dictates the type of map to create when it does not exist.
The map policy also specifies the flags used when writing items to the map.
See policy MapPolicy
.
public static Operation putItems(MapPolicy policy, String binName, Map<Value,Value> map)
The required map policy dictates the type of map to create when it does not exist.
The map policy also specifies the flags used when writing items to the map.
See policy MapPolicy
.
public static Operation increment(MapPolicy policy, String binName, Value key, Value incr)
The required map policy dictates the type of map to create when it does not exist.
The map policy also specifies the mode used when writing items to the map.
See policy MapPolicy
and write mode
MapWriteMode
.
public static Operation decrement(MapPolicy policy, String binName, Value key, Value decr)
The required map policy dictates the type of map to create when it does not exist.
The map policy also specifies the mode used when writing items to the map.
See policy MapPolicy
and write mode
MapWriteMode
.
public static Operation clear(String binName)
public static Operation removeByKey(String binName, Value key, int returnType)
MapReturnType
).public static Operation removeByKeyList(String binName, List<Value> keys, int returnType)
MapReturnType
).public static Operation removeByKeyRange(String binName, Value keyBegin, Value keyEnd, int returnType)
Server returns removed data specified by returnType (See MapReturnType
).
public static Operation removeByKeyRelativeIndexRange(String binName, Value key, int index, int returnType)
MapReturnType
).
Examples for map [{0=17},{4=2},{5=15},{9=10}]:
public static Operation removeByKeyRelativeIndexRange(String binName, Value key, int index, int count, int returnType)
MapReturnType
).
Examples for map [{0=17},{4=2},{5=15},{9=10}]:
public static Operation removeByValue(String binName, Value value, int returnType)
MapReturnType
).public static Operation removeByValueList(String binName, List<Value> values, int returnType)
MapReturnType
).public static Operation removeByValueRange(String binName, Value valueBegin, Value valueEnd, int returnType)
Server returns removed data specified by returnType (See MapReturnType
).
public static Operation removeByValueRelativeRankRange(String binName, Value value, int rank, int returnType)
MapReturnType
).
Examples for map [{4=2},{9=10},{5=15},{0=17}]:
public static Operation removeByValueRelativeRankRange(String binName, Value value, int rank, int count, int returnType)
MapReturnType
).
Examples for map [{4=2},{9=10},{5=15},{0=17}]:
public static Operation removeByIndex(String binName, int index, int returnType)
MapReturnType
).public static Operation removeByIndexRange(String binName, int index, int returnType)
MapReturnType
).public static Operation removeByIndexRange(String binName, int index, int count, int returnType)
MapReturnType
).public static Operation removeByRank(String binName, int rank, int returnType)
MapReturnType
).public static Operation removeByRankRange(String binName, int rank, int returnType)
MapReturnType
).public static Operation removeByRankRange(String binName, int rank, int count, int returnType)
MapReturnType
).public static Operation size(String binName)
public static Operation getByKey(String binName, Value key, int returnType)
MapReturnType
).public static Operation getByKeyRange(String binName, Value keyBegin, Value keyEnd, int returnType)
Server returns selected data specified by returnType (See MapReturnType
).
public static Operation getByKeyList(String binName, List<Value> keys, int returnType)
MapReturnType
).public static Operation getByKeyRelativeIndexRange(String binName, Value key, int index, int returnType)
MapReturnType
).
Examples for ordered map [{0=17},{4=2},{5=15},{9=10}]:
public static Operation getByKeyRelativeIndexRange(String binName, Value key, int index, int count, int returnType)
MapReturnType
).
Examples for ordered map [{0=17},{4=2},{5=15},{9=10}]:
public static Operation getByValue(String binName, Value value, int returnType)
MapReturnType
).public static Operation getByValueRange(String binName, Value valueBegin, Value valueEnd, int returnType)
Server returns selected data specified by returnType (See MapReturnType
).
public static Operation getByValueList(String binName, List<Value> values, int returnType)
MapReturnType
).public static Operation getByValueRelativeRankRange(String binName, Value value, int rank, int returnType)
MapReturnType
).
Examples for map [{4=2},{9=10},{5=15},{0=17}]:
public static Operation getByValueRelativeRankRange(String binName, Value value, int rank, int count, int returnType)
MapReturnType
).
Examples for map [{4=2},{9=10},{5=15},{0=17}]:
public static Operation getByIndex(String binName, int index, int returnType)
MapReturnType
).public static Operation getByIndexRange(String binName, int index, int returnType)
MapReturnType
).public static Operation getByIndexRange(String binName, int index, int count, int returnType)
MapReturnType
).public static Operation getByRank(String binName, int rank, int returnType)
MapReturnType
).public static Operation getByRankRange(String binName, int rank, int returnType)
MapReturnType
).public static Operation getByRankRange(String binName, int rank, int count, int returnType)
MapReturnType
).Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.