public class LargeMap extends Object
Deprecated: LDT functionality has been deprecated.
| Constructor and Description |
|---|
LargeMap(AerospikeClient client,
WritePolicy policy,
Key key,
String binName,
String createModule)
Initialize large map operator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Delete bin containing the map.
|
boolean |
exists(Value keyValue)
Check existence of key in the map.
|
Map<?,?> |
filter(String filterModule,
String filterName,
Value... filterArgs)
Select items from map.
|
Map<?,?> |
get(Value name)
Get value from map given name key.
|
int |
getCapacity()
Return maximum number of entries for the map.
|
Map<?,?> |
getConfig()
Return map configuration parameters.
|
void |
put(Map<?,?> map)
Add map values to map.
|
void |
put(Value name,
Value value)
Add entry to map.
|
void |
remove(Value name)
Remove entry from map.
|
Map<?,?> |
scan()
Return all objects in the map.
|
void |
setCapacity(int capacity)
Set maximum number of entries for the map.
|
int |
size()
Return size of map.
|
public LargeMap(AerospikeClient client, WritePolicy policy, Key key, String binName, String createModule)
client - clientpolicy - generic configuration parameters, pass in null for defaultskey - unique record identifierbinName - bin namecreateModule - Lua function name that initializes list configuration parameters, pass null for default setpublic void put(Value name, Value value) throws AerospikeException
name - entry keyvalue - entry valueAerospikeExceptionpublic void put(Map<?,?> map) throws AerospikeException
map - map values to pushAerospikeExceptionpublic Map<?,?> get(Value name) throws AerospikeException
name - key.AerospikeExceptionpublic boolean exists(Value keyValue) throws AerospikeException
keyValue - key to checkAerospikeExceptionpublic Map<?,?> scan() throws AerospikeException
AerospikeExceptionpublic Map<?,?> filter(String filterModule, String filterName, Value... filterArgs) throws AerospikeException
filterModule - Lua module name which contains filter functionfilterName - Lua function name which applies filter to returned listfilterArgs - arguments to Lua function nameAerospikeExceptionpublic void remove(Value name) throws AerospikeException
name - entry keyAerospikeExceptionpublic void destroy()
throws AerospikeException
AerospikeExceptionpublic int size()
throws AerospikeException
AerospikeExceptionpublic Map<?,?> getConfig() throws AerospikeException
AerospikeExceptionpublic void setCapacity(int capacity)
throws AerospikeException
capacity - max entries in setAerospikeExceptionpublic int getCapacity()
throws AerospikeException
AerospikeExceptionCopyright © 2012–2017 Aerospike, Inc. All rights reserved.