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