|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aerospike.client.large.LargeSet
public final class LargeSet
Create and manage a set within a single bin.
Constructor Summary | |
---|---|
LargeSet(AerospikeClient client,
Policy policy,
Key key,
java.lang.String binName,
java.lang.String userModule)
Initialize large set operator. |
Method Summary | |
---|---|
void |
add(Value... values)
Add values to the set. |
void |
add(Value value)
Add a value to the set. |
void |
destroy()
Delete bin containing the set. |
boolean |
exists(Value value)
Check existence of value in the set. |
java.util.List<?> |
filter(java.lang.String filterName,
Value... filterArgs)
Select values from set and apply specified Lua filter. |
java.lang.Object |
get(Value value)
Select value from set. |
int |
getCapacity()
Return maximum number of entries in the set. |
java.util.Map<?,?> |
getConfig()
Return map of set configuration parameters. |
void |
remove(Value value)
Delete value from set. |
java.util.List<?> |
scan()
Return list of all objects in the set. |
void |
setCapacity(int capacity)
Set maximum number of entries in the set. |
int |
size()
Return size of set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LargeSet(AerospikeClient client, Policy policy, Key key, java.lang.String binName, java.lang.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 add(Value value) throws AerospikeException
value
- value to add
AerospikeException
public final void add(Value... values) throws AerospikeException
values
- values to add
AerospikeException
public final void remove(Value value) throws AerospikeException
value
- value to delete
AerospikeException
public final java.lang.Object get(Value value) throws AerospikeException
value
- value to select
AerospikeException
public final boolean exists(Value value) throws AerospikeException
value
- value to check
AerospikeException
public final java.util.List<?> scan() throws AerospikeException
AerospikeException
public final java.util.List<?> filter(java.lang.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 java.util.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 |