public class InMemoryEventTable extends Object implements EventTable, Snapshotable
| Constructor and Description |
|---|
InMemoryEventTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ComplexEventChunk<StreamEvent> addingEventChunk) |
Finder |
constructFinder(org.wso2.siddhi.query.api.expression.Expression expression,
MatchingMetaStateHolder matchingMetaStateHolder,
ExecutionPlanContext executionPlanContext,
List<VariableExpressionExecutor> variableExpressionExecutors,
Map<String,EventTable> eventTableMap)
To construct a finder having the capability of finding events at the processor that corresponds to the incoming
matchingEvent and the given matching expression logic.
|
Operator |
constructOperator(org.wso2.siddhi.query.api.expression.Expression expression,
MatchingMetaStateHolder matchingMetaStateHolder,
ExecutionPlanContext executionPlanContext,
List<VariableExpressionExecutor> variableExpressionExecutors,
Map<String,EventTable> eventTableMap) |
boolean |
contains(StateEvent matchingEvent,
Finder finder) |
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
|
void |
delete(ComplexEventChunk<StateEvent> deletingEventChunk,
Operator operator) |
StreamEvent |
find(StateEvent matchingEvent,
Finder finder)
To find events from the processor event pool, that the matches the matchingEvent based on finder logic.
|
String |
getElementId() |
org.wso2.siddhi.query.api.definition.TableDefinition |
getTableDefinition() |
void |
init(org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition,
MetaStreamEvent tableMetaStreamEvent,
StreamEventPool tableStreamEventPool,
StreamEventCloner tableStreamEventCloner,
ExecutionPlanContext executionPlanContext) |
void |
overwriteOrAdd(ComplexEventChunk<StateEvent> overwritingOrAddingEventChunk,
Operator operator,
UpdateAttributeMapper[] updateAttributeMappers,
OverwritingStreamEventExtractor overwritingStreamEventExtractor) |
void |
restoreState(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 |
update(ComplexEventChunk<StateEvent> updatingEventChunk,
Operator operator,
UpdateAttributeMapper[] updateAttributeMappers) |
public void init(org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition,
MetaStreamEvent tableMetaStreamEvent,
StreamEventPool tableStreamEventPool,
StreamEventCloner tableStreamEventCloner,
ExecutionPlanContext executionPlanContext)
init in interface EventTablepublic org.wso2.siddhi.query.api.definition.TableDefinition getTableDefinition()
getTableDefinition in interface EventTablepublic void add(ComplexEventChunk<StreamEvent> addingEventChunk)
add in interface EventTablepublic void delete(ComplexEventChunk<StateEvent> deletingEventChunk, Operator operator)
delete in interface EventTablepublic void update(ComplexEventChunk<StateEvent> updatingEventChunk, Operator operator, UpdateAttributeMapper[] updateAttributeMappers)
update in interface EventTablepublic void overwriteOrAdd(ComplexEventChunk<StateEvent> overwritingOrAddingEventChunk, Operator operator, UpdateAttributeMapper[] updateAttributeMappers, OverwritingStreamEventExtractor overwritingStreamEventExtractor)
overwriteOrAdd in interface EventTablepublic boolean contains(StateEvent matchingEvent, Finder finder)
contains in interface EventTablepublic StreamEvent find(StateEvent matchingEvent, Finder finder)
FindableProcessorfind in interface FindableProcessormatchingEvent - the event to be matched with the events at the processorfinder - the execution element responsible for finding the corresponding events that matches
the matchingEvent based on pool of events at Processorpublic Finder constructFinder(org.wso2.siddhi.query.api.expression.Expression expression, MatchingMetaStateHolder matchingMetaStateHolder, ExecutionPlanContext executionPlanContext, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,EventTable> eventTableMap)
FindableProcessorconstructFinder in interface FindableProcessorexpression - the matching expressionmatchingMetaStateHolder - the meta structure of the incoming matchingEventexecutionPlanContext - current execution plan contextvariableExpressionExecutors - the list of variable ExpressionExecutors already createdeventTableMap - map of event tablespublic Operator constructOperator(org.wso2.siddhi.query.api.expression.Expression expression, MatchingMetaStateHolder matchingMetaStateHolder, ExecutionPlanContext executionPlanContext, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,EventTable> eventTableMap)
constructOperator in interface EventTablepublic Object[] currentState()
SnapshotablecurrentState in interface Snapshotablepublic void restoreState(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.