Class UpdateOrInsertStream
- java.lang.Object
-
- io.siddhi.query.api.execution.query.output.stream.OutputStream
-
- io.siddhi.query.api.execution.query.output.stream.UpdateOrInsertStream
-
- All Implemented Interfaces:
SiddhiElement,Serializable
public class UpdateOrInsertStream extends OutputStream
Query output stream try to update table else insert into it- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.siddhi.query.api.execution.query.output.stream.OutputStream
OutputStream.OutputEventType
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressiononUpdateExpression-
Fields inherited from class io.siddhi.query.api.execution.query.output.stream.OutputStream
id, outputEventType
-
-
Constructor Summary
Constructors Constructor Description UpdateOrInsertStream(String tableId, OutputStream.OutputEventType outputEventType, UpdateSet updateSet, Expression onUpdateExpression)UpdateOrInsertStream(String tableId, OutputStream.OutputEventType outputEventType, Expression onUpdateExpression)UpdateOrInsertStream(String tableId, UpdateSet updateSet, Expression onUpdateExpression)UpdateOrInsertStream(String tableId, Expression onUpdateExpression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ExpressiongetOnUpdateExpression()UpdateSetgetUpdateSet()inthashCode()voidsetOnUpdateExpression(Expression onUpdateExpression)voidsetUpdateSet(UpdateSet updateSet)StringtoString()static UpdateSetupdateSet()-
Methods inherited from class io.siddhi.query.api.execution.query.output.stream.OutputStream
getId, getOutputEventType, getQueryContextEndIndex, getQueryContextStartIndex, setId, setOutputEventType, setQueryContextEndIndex, setQueryContextStartIndex
-
-
-
-
Field Detail
-
onUpdateExpression
protected Expression onUpdateExpression
-
-
Constructor Detail
-
UpdateOrInsertStream
public UpdateOrInsertStream(String tableId, OutputStream.OutputEventType outputEventType, UpdateSet updateSet, Expression onUpdateExpression)
-
UpdateOrInsertStream
public UpdateOrInsertStream(String tableId, UpdateSet updateSet, Expression onUpdateExpression)
-
UpdateOrInsertStream
public UpdateOrInsertStream(String tableId, OutputStream.OutputEventType outputEventType, Expression onUpdateExpression)
-
UpdateOrInsertStream
public UpdateOrInsertStream(String tableId, Expression onUpdateExpression)
-
-
Method Detail
-
updateSet
public static UpdateSet updateSet()
-
getOnUpdateExpression
public Expression getOnUpdateExpression()
-
setOnUpdateExpression
public void setOnUpdateExpression(Expression onUpdateExpression)
-
getUpdateSet
public UpdateSet getUpdateSet()
-
setUpdateSet
public void setUpdateSet(UpdateSet updateSet)
-
toString
public String toString()
- Overrides:
toStringin classOutputStream
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classOutputStream
-
hashCode
public int hashCode()
- Overrides:
hashCodein classOutputStream
-
-