public class RDBMSEventTable extends Object implements org.wso2.siddhi.core.table.EventTable
| Constructor and Description |
|---|
RDBMSEventTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.wso2.siddhi.core.event.ComplexEventChunk<org.wso2.siddhi.core.event.stream.StreamEvent> addingEventChunk)
Called when adding an event to the event table
|
org.wso2.siddhi.core.util.collection.operator.Finder |
constructFinder(org.wso2.siddhi.query.api.expression.Expression expression,
org.wso2.siddhi.core.util.collection.operator.MatchingMetaStateHolder matchingMetaStateHolder,
org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext,
List<org.wso2.siddhi.core.executor.VariableExpressionExecutor> variableExpressionExecutors,
Map<String,org.wso2.siddhi.core.table.EventTable> eventTableMap)
Called to construct a operator to perform search operations
|
org.wso2.siddhi.core.util.collection.operator.Operator |
constructOperator(org.wso2.siddhi.query.api.expression.Expression expression,
org.wso2.siddhi.core.util.collection.operator.MatchingMetaStateHolder matchingMetaStateHolder,
org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext,
List<org.wso2.siddhi.core.executor.VariableExpressionExecutor> variableExpressionExecutors,
Map<String,org.wso2.siddhi.core.table.EventTable> eventTableMap)
Called to construct a operator to perform delete and update operations
|
boolean |
contains(org.wso2.siddhi.core.event.state.StateEvent matchingEvent,
org.wso2.siddhi.core.util.collection.operator.Finder finder)
Called when having "in" condition, to check the existence of the event
|
void |
delete(org.wso2.siddhi.core.event.ComplexEventChunk deletingEventChunk,
org.wso2.siddhi.core.util.collection.operator.Operator operator)
Called when deleting an event chunk from event table
|
org.wso2.siddhi.core.event.stream.StreamEvent |
find(org.wso2.siddhi.core.event.state.StateEvent matchingEvent,
org.wso2.siddhi.core.util.collection.operator.Finder finder)
Called to find a event from event table
|
org.wso2.siddhi.query.api.definition.TableDefinition |
getTableDefinition() |
void |
init(org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition,
org.wso2.siddhi.core.event.stream.MetaStreamEvent tableMetaStreamEvent,
org.wso2.siddhi.core.event.stream.StreamEventPool tableStreamEventPool,
org.wso2.siddhi.core.event.stream.StreamEventCloner tableStreamEventCloner,
org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext)
Event Table initialization method, it checks the annotation and do necessary pre configuration tasks.
|
void |
overwriteOrAdd(org.wso2.siddhi.core.event.ComplexEventChunk<org.wso2.siddhi.core.event.state.StateEvent> overwritingOrAddingEventChunk,
org.wso2.siddhi.core.util.collection.operator.Operator operator,
org.wso2.siddhi.core.util.collection.UpdateAttributeMapper[] updateAttributeMappers,
org.wso2.siddhi.core.util.collection.OverwritingStreamEventExtractor overwritingStreamEventExtractor) |
void |
update(org.wso2.siddhi.core.event.ComplexEventChunk<org.wso2.siddhi.core.event.state.StateEvent> updatingEventChunk,
org.wso2.siddhi.core.util.collection.operator.Operator operator,
org.wso2.siddhi.core.util.collection.UpdateAttributeMapper[] updateAttributeMappers) |
public void init(org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition,
org.wso2.siddhi.core.event.stream.MetaStreamEvent tableMetaStreamEvent,
org.wso2.siddhi.core.event.stream.StreamEventPool tableStreamEventPool,
org.wso2.siddhi.core.event.stream.StreamEventCloner tableStreamEventCloner,
org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext)
init in interface org.wso2.siddhi.core.table.EventTabletableDefinition - Definition of event tabletableMetaStreamEvent - tableStreamEventPool - tableStreamEventCloner - executionPlanContext - ExecutionPlan related meta informationpublic org.wso2.siddhi.query.api.definition.TableDefinition getTableDefinition()
getTableDefinition in interface org.wso2.siddhi.core.table.EventTablepublic void add(org.wso2.siddhi.core.event.ComplexEventChunk<org.wso2.siddhi.core.event.stream.StreamEvent> addingEventChunk)
add in interface org.wso2.siddhi.core.table.EventTableaddingEventChunk - input event listpublic void update(org.wso2.siddhi.core.event.ComplexEventChunk<org.wso2.siddhi.core.event.state.StateEvent> updatingEventChunk,
org.wso2.siddhi.core.util.collection.operator.Operator operator,
org.wso2.siddhi.core.util.collection.UpdateAttributeMapper[] updateAttributeMappers)
update in interface org.wso2.siddhi.core.table.EventTablepublic void overwriteOrAdd(org.wso2.siddhi.core.event.ComplexEventChunk<org.wso2.siddhi.core.event.state.StateEvent> overwritingOrAddingEventChunk,
org.wso2.siddhi.core.util.collection.operator.Operator operator,
org.wso2.siddhi.core.util.collection.UpdateAttributeMapper[] updateAttributeMappers,
org.wso2.siddhi.core.util.collection.OverwritingStreamEventExtractor overwritingStreamEventExtractor)
overwriteOrAdd in interface org.wso2.siddhi.core.table.EventTablepublic boolean contains(org.wso2.siddhi.core.event.state.StateEvent matchingEvent,
org.wso2.siddhi.core.util.collection.operator.Finder finder)
contains in interface org.wso2.siddhi.core.table.EventTablematchingEvent - Event that need to be check for existencefinder - Operator that perform RDBMS related searchpublic void delete(org.wso2.siddhi.core.event.ComplexEventChunk deletingEventChunk,
org.wso2.siddhi.core.util.collection.operator.Operator operator)
delete in interface org.wso2.siddhi.core.table.EventTabledeletingEventChunk - Event list for deletionoperator - Operator that perform RDBMS related operationspublic org.wso2.siddhi.core.util.collection.operator.Operator constructOperator(org.wso2.siddhi.query.api.expression.Expression expression,
org.wso2.siddhi.core.util.collection.operator.MatchingMetaStateHolder matchingMetaStateHolder,
org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext,
List<org.wso2.siddhi.core.executor.VariableExpressionExecutor> variableExpressionExecutors,
Map<String,org.wso2.siddhi.core.table.EventTable> eventTableMap)
constructOperator in interface org.wso2.siddhi.core.table.EventTablepublic org.wso2.siddhi.core.event.stream.StreamEvent find(org.wso2.siddhi.core.event.state.StateEvent matchingEvent,
org.wso2.siddhi.core.util.collection.operator.Finder finder)
find in interface org.wso2.siddhi.core.query.processor.stream.window.FindableProcessorpublic org.wso2.siddhi.core.util.collection.operator.Finder constructFinder(org.wso2.siddhi.query.api.expression.Expression expression,
org.wso2.siddhi.core.util.collection.operator.MatchingMetaStateHolder matchingMetaStateHolder,
org.wso2.siddhi.core.config.ExecutionPlanContext executionPlanContext,
List<org.wso2.siddhi.core.executor.VariableExpressionExecutor> variableExpressionExecutors,
Map<String,org.wso2.siddhi.core.table.EventTable> eventTableMap)
constructFinder in interface org.wso2.siddhi.core.query.processor.stream.window.FindableProcessorCopyright © 2022 WSO2. All Rights Reserved.