public final class LargeMap extends Object
Constructor and Description |
---|
LargeMap(AerospikeClient client,
Policy policy,
Key key,
String binName,
String userModule)
Initialize large map operator.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Delete bin containing the map.
|
Map<?,?> |
filter(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, Policy policy, Key key, String binName, String userModule)
client
- clientpolicy
- generic configuration parameters, pass in null for defaultskey
- unique record identifierbinName
- bin nameuserModule
- Lua function name that initializes list configuration parameters, pass null for default setpublic final void put(Value name, Value value) throws AerospikeException
name
- entry keyvalue
- entry valueAerospikeException
public final void put(Map<?,?> map) throws AerospikeException
map
- map values to pushAerospikeException
public final Map<?,?> get(Value name) throws AerospikeException
name
- key.AerospikeException
public final Map<?,?> scan() throws AerospikeException
AerospikeException
public final Map<?,?> filter(String filterName, Value... filterArgs) throws AerospikeException
filterName
- Lua function name which applies filter to returned listfilterArgs
- arguments to Lua function nameAerospikeException
public final void remove(Value name) throws AerospikeException
name
- entry keyAerospikeException
public final void destroy() throws AerospikeException
AerospikeException
public final int size() throws AerospikeException
AerospikeException
public final Map<?,?> getConfig() throws AerospikeException
AerospikeException
public final void setCapacity(int capacity) throws AerospikeException
capacity
- max entries in setAerospikeException
public final int getCapacity() throws AerospikeException
AerospikeException
Copyright © 2012–2014 Aerospike, Inc. All rights reserved.