K - key typeV - value typepublic abstract class NamedMapInvokableContext<K,V>
extends java.lang.Object
NamedMapInvokable.evalPartialKeySet(NamedMapInvokableContext, Object),
to iterate through keys and perform an operation on the current key.| Constructor and Description |
|---|
NamedMapInvokableContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract K |
getKey()
Returns current key.
|
abstract NamedMap<K,V> |
getMap()
Returns the
NamedMap this operation is performed on. |
abstract V |
getValue()
Returns current value.
|
abstract boolean |
next()
Reads the next key and value from the map.
|
abstract void |
removeCurrentKey()
Removes the current key from the named map.
|
abstract void |
updateCurrentValue(V newValue)
Updates the value for the current key.
|
public abstract K getKey()
public abstract V getValue()
public abstract boolean next()
throws InvokeException
true if successfully read next key and value, false otherwiseInvokeException - when a server invocation error has occurred.public abstract void updateCurrentValue(V newValue)
newValue - new value to assign for the keypublic abstract void removeCurrentKey()