public class LargeStack extends Object
Deprecated: LDT functionality has been deprecated.
| Constructor and Description |
|---|
LargeStack(AerospikeClient client,
WritePolicy policy,
Key key,
String binName,
String createModule)
Initialize large stack operator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Delete bin containing the stack.
|
List<?> |
filter(int peekCount,
String filterModule,
String filterName,
Value... filterArgs)
Select items from top of stack.
|
int |
getCapacity()
Return maximum number of entries for the stack.
|
Map<?,?> |
getConfig()
Return map of stack configuration parameters.
|
List<?> |
peek(int peekCount)
Select items from top of stack.
|
void |
push(List<?> values)
Push values onto stack.
|
void |
push(Value... values)
Push values onto stack.
|
void |
push(Value value)
Push value onto stack.
|
List<?> |
scan()
Return list of all objects on the stack.
|
void |
setCapacity(int capacity)
Set maximum number of entries for the stack.
|
int |
size()
Return size of stack.
|
public LargeStack(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 push(Value value) throws AerospikeException
value - value to pushAerospikeExceptionpublic void push(Value... values) throws AerospikeException
values - values to pushAerospikeExceptionpublic void push(List<?> values) throws AerospikeException
values - values to pushAerospikeExceptionpublic List<?> peek(int peekCount) throws AerospikeException
peekCount - number of items to select.AerospikeExceptionpublic List<?> scan() throws AerospikeException
AerospikeExceptionpublic List<?> filter(int peekCount, String filterModule, String filterName, Value... filterArgs) throws AerospikeException
peekCount - number of items to select.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.