public final class LargeList extends Object
Constructor and Description |
---|
LargeList(AerospikeClient client,
Policy policy,
Key key,
String binName,
String userModule)
Initialize large list operator.
|
Modifier and Type | Method and Description |
---|---|
void |
add(List<?> values)
Add values to the list.
|
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.
|
List<?> |
range(Value minValue,
Value maxValue)
Select a range of values from the large list.
|
List<?> |
range(Value minValue,
Value maxValue,
String filterName,
Value... filterArgs)
Select a range of values from the large list, then apply a Lua filter.
|
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.
|
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 listpublic final void add(Value value) throws AerospikeException
value
- value to addAerospikeException
public final void add(Value... values) throws AerospikeException
values
- values to addAerospikeException
public final void add(List<?> values) throws AerospikeException
values
- values to addAerospikeException
public final void remove(Value value) throws AerospikeException
value
- value to deleteAerospikeException
public final List<?> find(Value value) throws AerospikeException
value
- value to selectAerospikeException
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 nameAerospikeException
public final List<?> range(Value minValue, Value maxValue) throws AerospikeException
minValue
- low value of the rangemaxValue
- high value of the rangeAerospikeException
public final List<?> range(Value minValue, Value maxValue, String filterName, Value... filterArgs) throws AerospikeException
minValue
- low value of the rangemaxValue
- high value of the rangefilterName
- Lua function name which applies filter to returned listfilterArgs
- arguments to Lua function nameAerospikeException
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 nameAerospikeException
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 listAerospikeException
public final int getCapacity() throws AerospikeException
AerospikeException
Copyright © 2012–2014 Aerospike, Inc. All rights reserved.