|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aerospike.client.large.LargeMap
public final class LargeMap
Create and manage a map within a single bin.
Constructor Summary | |
---|---|
LargeMap(AerospikeClient client,
Policy policy,
Key key,
String binName,
String userModule)
Initialize large map operator. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 setMethod Detail |
---|
public final void put(Value name, Value value) throws AerospikeException
name
- entry keyvalue
- entry value
AerospikeException
public final void put(Map<?,?> map) throws AerospikeException
map
- map values to push
AerospikeException
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 name
AerospikeException
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 set
AerospikeException
public final int getCapacity() throws AerospikeException
AerospikeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |