|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aerospike.client.LargeStack
public final class LargeStack
Create and manage a stack within a single bin. A stack is last in/first out (LIFO).
Constructor Summary | |
---|---|
LargeStack(AerospikeClient client,
Policy policy,
Key key,
java.lang.String binName)
Initialize large stack operator. |
Method Summary | |
---|---|
void |
create(java.lang.String configName)
Create a stack in a single record bin. |
java.util.Map<?,?> |
getConfig()
Return map of stack configuration parameters. |
java.util.List<?> |
peek(int peekCount)
Select items from top of stack. |
java.util.List<?> |
peek(int peekCount,
java.lang.String filterName,
Value... filterArgs)
Select items from top of stack. |
void |
push(java.lang.String configName,
Value value)
Push value onto stack. |
void |
push(Value value)
Push value onto stack. |
int |
size()
Return size of stack. |
void |
trim(int trimCount)
Delete items from the top of stack. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LargeStack(AerospikeClient client, Policy policy, Key key, java.lang.String binName)
client
- clientpolicy
- generic configuration parameters, pass in null for defaultskey
- unique record identifierbinName
- bin nameMethod Detail |
---|
public final void create(java.lang.String configName) throws AerospikeException
configName
- Lua function name that initializes stack configuration parameters, pass null for default stack
AerospikeException
public final void push(java.lang.String configName, Value value) throws AerospikeException
configName
- Lua function name that initializes stack configuration parameters, pass null for default stackvalue
- value to push
AerospikeException
public final void push(Value value) throws AerospikeException
value
- value to insert
AerospikeException
public final void trim(int trimCount) throws AerospikeException
trimCount
- number of items to pop off stack
AerospikeException
public final java.util.List<?> peek(int peekCount) throws AerospikeException
peekCount
- number of items to select.
AerospikeException
public final java.util.List<?> peek(int peekCount, java.lang.String filterName, Value... filterArgs) throws AerospikeException
peekCount
- number of items to select.filterName
- Lua function name which applies filter to returned listfilterArgs
- arguments to Lua function name
AerospikeException
public final int size() throws AerospikeException
AerospikeException
public final java.util.Map<?,?> getConfig() throws AerospikeException
AerospikeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |