public class LargeSet extends Object
Constructor and Description |
---|
LargeSet(AerospikeClient client,
WritePolicy policy,
Key key,
String binName,
String createModule)
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 filterModule,
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 createModule)
client
- clientpolicy
- generic configuration parameters, pass in null for defaultskey
- unique record identifierbinName
- bin namecreateModule
- Lua function name that initializes list configuration parameters, pass null for default setpublic void add(Value value) throws AerospikeException
value
- value to addAerospikeException
public void add(Value... values) throws AerospikeException
values
- values to addAerospikeException
public void add(List<?> values) throws AerospikeException
values
- values to addAerospikeException
public void remove(Value value) throws AerospikeException
value
- value to deleteAerospikeException
public Object get(Value value) throws AerospikeException
value
- value to selectAerospikeException
public boolean exists(Value value) throws AerospikeException
value
- value to checkAerospikeException
public List<?> scan() throws AerospikeException
AerospikeException
public List<?> filter(String filterModule, String filterName, Value... filterArgs) throws AerospikeException
filterModule
- Lua module name which contains filter functionfilterName
- Lua function name which applies filter to returned listfilterArgs
- arguments to Lua function nameAerospikeException
public void destroy() throws AerospikeException
AerospikeException
public int size() throws AerospikeException
AerospikeException
public Map<?,?> getConfig() throws AerospikeException
AerospikeException
public void setCapacity(int capacity) throws AerospikeException
capacity
- max entries in setAerospikeException
public int getCapacity() throws AerospikeException
AerospikeException
Copyright © 2012–2015 Aerospike, Inc. All rights reserved.