public class LargeSet extends Object
Deprecated: LDT functionality has been deprecated.
| 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 addAerospikeExceptionpublic void add(Value... values) throws AerospikeException
values - values to addAerospikeExceptionpublic void add(List<?> values) throws AerospikeException
values - values to addAerospikeExceptionpublic void remove(Value value) throws AerospikeException
value - value to deleteAerospikeExceptionpublic Object get(Value value) throws AerospikeException
value - value to selectAerospikeExceptionpublic boolean exists(Value value) throws AerospikeException
value - value to checkAerospikeExceptionpublic List<?> scan() throws AerospikeException
AerospikeExceptionpublic 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 nameAerospikeExceptionpublic void destroy()
throws AerospikeException
AerospikeExceptionpublic int size()
throws AerospikeException
AerospikeExceptionpublic Map<?,?> getConfig() throws AerospikeException
AerospikeExceptionpublic void setCapacity(int capacity)
throws AerospikeException
capacity - max entries in setAerospikeExceptionpublic int getCapacity()
throws AerospikeException
AerospikeExceptionCopyright © 2012–2017 Aerospike, Inc. All rights reserved.