public class LargeStack extends Object
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 pushAerospikeException
public void push(Value... values) throws AerospikeException
values
- values to pushAerospikeException
public void push(List<?> values) throws AerospikeException
values
- values to pushAerospikeException
public List<?> peek(int peekCount) throws AerospikeException
peekCount
- number of items to select.AerospikeException
public List<?> scan() throws AerospikeException
AerospikeException
public 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 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.