|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aerospike.client.large.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,
java.lang.String userModule)
Initialize large stack operator. |
Method Summary | |
---|---|
void |
destroy()
Delete bin containing the stack. |
java.util.List<?> |
filter(int peekCount,
java.lang.String filterName,
Value... filterArgs)
Select items from top of stack. |
int |
getCapacity()
Return maximum number of entries for the stack. |
java.util.Map<?,?> |
getConfig()
Return map of stack configuration parameters. |
java.util.List<?> |
peek(int peekCount)
Select items from top of stack. |
void |
push(Value... values)
Push values onto stack. |
void |
push(Value value)
Push value onto stack. |
java.util.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. |
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, java.lang.String userModule)
client
- clientpolicy
- generic configuration parameters, pass in null for defaultskey
- unique record identifierbinName
- bin nameuserModule
- Lua function name that initializes list configuration parameters, pass null for default setMethod Detail |
---|
public final void push(Value value) throws AerospikeException
value
- value to push
AerospikeException
public final void push(Value... values) throws AerospikeException
values
- values to push
AerospikeException
public final java.util.List<?> peek(int peekCount) throws AerospikeException
peekCount
- number of items to select.
AerospikeException
public final java.util.List<?> scan() throws AerospikeException
AerospikeException
public final java.util.List<?> filter(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 void destroy() throws AerospikeException
AerospikeException
public final int size() throws AerospikeException
AerospikeException
public final java.util.Map<?,?> getConfig() throws AerospikeException
AerospikeException
public final void setCapacity(int capacity) throws AerospikeException
capacity
- max entries in set
AerospikeException
public final int getCapacity() throws AerospikeException
AerospikeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |