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,
MapReturnType returnType)
Create map get by index operation.
|
static Operation |
getByIndexRange(String binName,
int index,
int count,
MapReturnType returnType)
Create map get by index range operation.
|
static Operation |
getByIndexRange(String binName,
int index,
MapReturnType returnType)
Create map get by index range operation.
|
static Operation |
getByKey(String binName,
Value key,
MapReturnType returnType)
Create map get by key operation.
|
static Operation |
getByKeyRange(String binName,
Value keyBegin,
Value keyEnd,
MapReturnType returnType)
Create map get by key range operation.
|
static Operation |
getByRank(String binName,
int rank,
MapReturnType returnType)
Create map get by rank operation.
|
static Operation |
getByRankRange(String binName,
int rank,
int count,
MapReturnType returnType)
Create map get by rank range operation.
|
static Operation |
getByRankRange(String binName,
int rank,
MapReturnType returnType)
Create map get by rank range operation.
|
static Operation |
getByValue(String binName,
Value value,
MapReturnType returnType)
Create map get by value operation.
|
static Operation |
getByValueRange(String binName,
Value valueBegin,
Value valueEnd,
MapReturnType returnType)
Create map get by value 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,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByIndexRange(String binName,
int index,
int count,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByIndexRange(String binName,
int index,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByKey(String binName,
Value key,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByKeyList(String binName,
List<Value> keys,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByKeyRange(String binName,
Value keyBegin,
Value keyEnd,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByRank(String binName,
int rank,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByRankRange(String binName,
int rank,
int count,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByRankRange(String binName,
int rank,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByValue(String binName,
Value value,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByValueList(String binName,
List<Value> values,
MapReturnType returnType)
Create map remove operation.
|
static Operation |
removeByValueRange(String binName,
Value valueBegin,
Value valueEnd,
MapReturnType returnType)
Create map remove 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 mode used when writing items to the map.
See policy MapPolicy
and write mode
MapWriteMode
.
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 mode used when writing items to the map.
See policy MapPolicy
and write mode
MapWriteMode
.
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, MapReturnType returnType)
public static Operation removeByKeyList(String binName, List<Value> keys, MapReturnType returnType)
public static Operation removeByKeyRange(String binName, Value keyBegin, Value keyEnd, MapReturnType returnType)
Server returns removed data specified by returnType.
public static Operation removeByValue(String binName, Value value, MapReturnType returnType)
public static Operation removeByValueList(String binName, List<Value> values, MapReturnType returnType)
public static Operation removeByValueRange(String binName, Value valueBegin, Value valueEnd, MapReturnType returnType)
Server returns removed data specified by returnType.
public static Operation removeByIndex(String binName, int index, MapReturnType returnType)
public static Operation removeByIndexRange(String binName, int index, MapReturnType returnType)
public static Operation removeByIndexRange(String binName, int index, int count, MapReturnType returnType)
public static Operation removeByRank(String binName, int rank, MapReturnType returnType)
public static Operation removeByRankRange(String binName, int rank, MapReturnType returnType)
public static Operation removeByRankRange(String binName, int rank, int count, MapReturnType returnType)
public static Operation size(String binName)
public static Operation getByKey(String binName, Value key, MapReturnType returnType)
public static Operation getByKeyRange(String binName, Value keyBegin, Value keyEnd, MapReturnType returnType)
Server returns selected data specified by returnType.
public static Operation getByValue(String binName, Value value, MapReturnType returnType)
public static Operation getByValueRange(String binName, Value valueBegin, Value valueEnd, MapReturnType returnType)
Server returns selected data specified by returnType.
public static Operation getByIndex(String binName, int index, MapReturnType returnType)
public static Operation getByIndexRange(String binName, int index, MapReturnType returnType)
public static Operation getByIndexRange(String binName, int index, int count, MapReturnType returnType)
public static Operation getByRank(String binName, int rank, MapReturnType returnType)
public static Operation getByRankRange(String binName, int rank, MapReturnType returnType)
public static Operation getByRankRange(String binName, int rank, int count, MapReturnType returnType)
Copyright © 2012–2017 Aerospike, Inc. All rights reserved.