Search in sources :

Example 6 with UpdateOrInsertStream

use of io.siddhi.query.api.execution.query.output.stream.UpdateOrInsertStream in project siddhi by wso2.

the class Query method updateOrInsertBy.

public void updateOrInsertBy(String outputTableId, UpdateSet updateSetAttributes, Expression onUpdateExpression) {
    this.outputStream = new UpdateOrInsertStream(outputTableId, updateSetAttributes, onUpdateExpression);
    updateOutputEventType(outputRate, outputStream);
}
Also used : UpdateOrInsertStream(io.siddhi.query.api.execution.query.output.stream.UpdateOrInsertStream)

Aggregations

UpdateOrInsertStream (io.siddhi.query.api.execution.query.output.stream.UpdateOrInsertStream)6 DeleteStream (io.siddhi.query.api.execution.query.output.stream.DeleteStream)4 InsertIntoStream (io.siddhi.query.api.execution.query.output.stream.InsertIntoStream)4 UpdateStream (io.siddhi.query.api.execution.query.output.stream.UpdateStream)4 MetaStreamEvent (io.siddhi.core.event.stream.MetaStreamEvent)2 Table (io.siddhi.core.table.Table)2 Window (io.siddhi.core.window.Window)2 OutputStream (io.siddhi.query.api.execution.query.output.stream.OutputStream)2 ReturnStream (io.siddhi.query.api.execution.query.output.stream.ReturnStream)2 Expression (io.siddhi.query.api.expression.Expression)2 AggregationRuntime (io.siddhi.core.aggregation.AggregationRuntime)1 SiddhiOnDemandQueryContext (io.siddhi.core.config.SiddhiOnDemandQueryContext)1 SiddhiQueryContext (io.siddhi.core.config.SiddhiQueryContext)1 StateEventFactory (io.siddhi.core.event.state.StateEventFactory)1 StreamEventFactory (io.siddhi.core.event.stream.StreamEventFactory)1 StreamEventConverter (io.siddhi.core.event.stream.converter.StreamEventConverter)1 ZeroStreamEventConverter (io.siddhi.core.event.stream.converter.ZeroStreamEventConverter)1 OnDemandQueryCreationException (io.siddhi.core.exception.OnDemandQueryCreationException)1 SiddhiAppCreationException (io.siddhi.core.exception.SiddhiAppCreationException)1 VariableExpressionExecutor (io.siddhi.core.executor.VariableExpressionExecutor)1