public class BaseIncrementalValueStore extends Object implements Snapshotable
| Constructor and Description |
|---|
BaseIncrementalValueStore(String aggregatorName,
long initialTimeStamp,
List<ExpressionExecutor> expressionExecutors,
ExpressionExecutor shouldUpdateTimestamp,
StreamEventPool streamEventPool,
SiddhiAppContext siddhiAppContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Used to clean its references
|
void |
clearValues() |
BaseIncrementalValueStore |
cloneStore(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() |
ExpressionExecutor |
getShouldUpdateTimestamp() |
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(String aggregatorName, long initialTimeStamp, List<ExpressionExecutor> expressionExecutors, ExpressionExecutor shouldUpdateTimestamp, StreamEventPool streamEventPool, SiddhiAppContext siddhiAppContext)
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(long timestamp)
public ExpressionExecutor getShouldUpdateTimestamp()
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 Snapshotablepublic void clean()
Snapshotableclean in interface SnapshotableCopyright © 2019 WSO2. All rights reserved.