Class InternalStoreCallable.EphemeralKeyValueStore
- java.lang.Object
-
- de.uplanet.lucy.server.store.scripting.velocity.InternalStoreCallable.EphemeralKeyValueStore
-
- Enclosing class:
- InternalStoreCallable
public final class InternalStoreCallable.EphemeralKeyValueStore extends Object
Access the internal ephemeral key-value store.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(String p_strKey)
Check if the store contains a mapping for the given key.Object
put(String p_strKey, Object p_value)
Map the specified key to the given value.Object
remove(String p_strKey)
Remove the specified mapping.
-
-
-
Method Detail
-
containsKey
public boolean containsKey(String p_strKey)
Check if the store contains a mapping for the given key.Note that there is no guaranty that subsequent calls
put(String, Object)
orremove(String)
will retrieve the associated value.- Parameters:
p_strKey
- The key.- Returns:
true
if the store contains a mapping for the given key, orfalse
otherwise.
-
put
public Object put(String p_strKey, Object p_value)
Map the specified key to the given value.- Parameters:
p_strKey
- The key (must not benull
).p_value
- The value (must not benull
).- Returns:
- The previous value associated with the key, or
null
if there was no mapping for the key.
-
-