public interface TransientStore extends Serializable
TransientStore is an interface that holds volatile information that's
present across all the steps associated with the directives that are processing
a single record.| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String name)
A value associated with the variable in the transient store.
|
Set<String> |
getVariables()
Set of all the variables.
|
void |
increment(TransientVariableScope scope,
String name,
long value)
Increments a value of the variable.
|
void |
reset(TransientVariableScope scope)
Resets the state of this store.
|
void |
set(TransientVariableScope scope,
String name,
Object value)
Sets the value of the object for variable named 'name'.
|
void reset(TransientVariableScope scope)
<T> T get(String name)
T - type of the value to be returned.name - of the variable to be retrieved.void set(TransientVariableScope scope, String name, Object value)
name - of the variable for which the value needs to be set.value - of the variable.void increment(TransientVariableScope scope, String name, long value)
name - of the variable.value - associated with the variable.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.