public class LargeMap extends Object
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 valueAerospikeException
public void put(Map<?,?> map) throws AerospikeException
map
- map values to pushAerospikeException
public Map<?,?> get(Value name) throws AerospikeException
name
- key.AerospikeException
public boolean exists(Value keyValue) throws AerospikeException
keyValue
- key to checkAerospikeException
public Map<?,?> scan() throws AerospikeException
AerospikeException
public 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 nameAerospikeException
public void remove(Value name) throws AerospikeException
name
- entry keyAerospikeException
public void destroy() throws AerospikeException
AerospikeException
public int size() throws AerospikeException
AerospikeException
public Map<?,?> getConfig() throws AerospikeException
AerospikeException
public void setCapacity(int capacity) throws AerospikeException
capacity
- max entries in setAerospikeException
public int getCapacity() throws AerospikeException
AerospikeException
Copyright © 2012–2015 Aerospike, Inc. All rights reserved.