public class BaseIncrementalValueStore extends Object implements Snapshotable
| Constructor and Description |
|---|
BaseIncrementalValueStore(long timeStamp,
List<ExpressionExecutor> expressionExecutors,
StreamEventPool streamEventPool,
SiddhiAppContext siddhiAppContext,
String aggregatorName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValues() |
BaseIncrementalValueStore |
cloneStore(String key,
long timestamp) |
StreamEvent |
createStreamEvent() |
Map<String,Object> |
currentState()
Used to collect the serializable state of the processing element, that need to be
persisted for the reconstructing the element to the same state on a different point of time
|
String |
getElementId() |
List<ExpressionExecutor> |
getExpressionExecutors() |
long |
getTimestamp() |
boolean |
isProcessed() |
void |
restoreState(Map<String,Object> state)
Used to restore serialized state of the processing element, for reconstructing
the element to the same state as if was on a previous point of time.
|
void |
setProcessed(boolean isProcessed) |
void |
setTimestamp(long timestamp) |
void |
setValue(Object value,
int position) |
public BaseIncrementalValueStore(long timeStamp,
List<ExpressionExecutor> expressionExecutors,
StreamEventPool streamEventPool,
SiddhiAppContext siddhiAppContext,
String aggregatorName)
public void clearValues()
public void setTimestamp(long timestamp)
public void setValue(Object value, int position)
public void setProcessed(boolean isProcessed)
public long getTimestamp()
public List<ExpressionExecutor> getExpressionExecutors()
public boolean isProcessed()
public StreamEvent createStreamEvent()
public BaseIncrementalValueStore cloneStore(String key, long timestamp)
public Map<String,Object> currentState()
SnapshotablecurrentState in interface Snapshotablepublic void restoreState(Map<String,Object> state)
SnapshotablerestoreState in interface Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().public String getElementId()
getElementId in interface SnapshotableCopyright © 2018 WSO2. All rights reserved.