public final class LargeSet extends Object
Constructor and Description |
---|
LargeSet(AerospikeClient client,
WritePolicy policy,
Key key,
String binName,
String userModule)
Initialize large set operator.
|
Modifier and Type | Method and Description |
---|---|
void |
add(List<?> values)
Add values to the set.
|
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.
|
List<?> |
filter(String filterName,
Value... filterArgs)
Select values from set and apply specified Lua filter.
|
Object |
get(Value value)
Select value from set.
|
int |
getCapacity()
Return maximum number of entries in the set.
|
Map<?,?> |
getConfig()
Return map of set configuration parameters.
|
void |
remove(Value value)
Delete value from set.
|
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.
|
public LargeSet(AerospikeClient client, WritePolicy 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 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 Object get(Value value) throws AerospikeException
value
- value to selectAerospikeException
public final boolean exists(Value value) throws AerospikeException
value
- value to checkAerospikeException
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 setAerospikeException
public final int getCapacity() throws AerospikeException
AerospikeException
Copyright © 2012–2014 Aerospike, Inc. All rights reserved.