Class OnMergeMatchedInsertAction
java.lang.Object
com.espertech.esper.common.client.soda.OnMergeMatchedInsertAction
- All Implemented Interfaces:
OnMergeMatchedAction
,Serializable
For use with on-merge clauses, inserts into a named window if matching rows are not found.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.OnMergeMatchedInsertAction
(List<String> columnNames, Expression eventPrecedence, List<SelectClauseElement> selectList, Expression whereClause, String optionalStreamName) Ctor.OnMergeMatchedInsertAction
(List<String> columnNames, List<SelectClauseElement> selectList, Expression whereClause, String optionalStreamName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the insert-into column names, if provided.Returns null when no event-precedence is specified for the insert-into, or returns the expression returning the event-precedenceReturns the insert-into stream name.Returns the select expressions.Returns the action condition, or null if undefined.void
setColumnNames
(List<String> columnNames) Sets the insert-into column names, can be empty list.void
setEventPrecedence
(Expression eventPrecedence) Set to null when no event-precedence is specified for the insert-into, or set an expression returning the event-precedencevoid
setOptionalStreamName
(String optionalStreamName) Sets the insert-into stream name.void
setSelectList
(List<SelectClauseElement> selectList) Sets the select expressions.void
setWhereClause
(Expression whereClause) Sets the action condition, or null if undefined.void
toEPL
(StringWriter writer) Render to EPL.
-
Constructor Details
-
OnMergeMatchedInsertAction
public OnMergeMatchedInsertAction(List<String> columnNames, List<SelectClauseElement> selectList, Expression whereClause, String optionalStreamName) Ctor.- Parameters:
columnNames
- insert-into column names, or empty list if none providedselectList
- select expression listwhereClause
- optional condition or nulloptionalStreamName
- optionally a stream name for insert-into
-
OnMergeMatchedInsertAction
public OnMergeMatchedInsertAction(List<String> columnNames, Expression eventPrecedence, List<SelectClauseElement> selectList, Expression whereClause, String optionalStreamName) Ctor.- Parameters:
columnNames
- insert-into column names, or empty list if none providedselectList
- select expression listwhereClause
- optional condition or nulloptionalStreamName
- optionally a stream name for insert-intoeventPrecedence
- event precedence or null
-
OnMergeMatchedInsertAction
public OnMergeMatchedInsertAction()Ctor.
-
-
Method Details
-
getWhereClause
Returns the action condition, or null if undefined.- Returns:
- condition
-
setWhereClause
Sets the action condition, or null if undefined.- Parameters:
whereClause
- to set, or null to remove the condition
-
getColumnNames
Returns the insert-into column names, if provided.- Returns:
- column names
-
setColumnNames
Sets the insert-into column names, can be empty list.- Parameters:
columnNames
- column names to set
-
getSelectList
Returns the select expressions.- Returns:
- expression list
-
setSelectList
Sets the select expressions.- Parameters:
selectList
- expression list
-
getOptionalStreamName
Returns the insert-into stream name.- Returns:
- stream name
-
setOptionalStreamName
Sets the insert-into stream name.- Parameters:
optionalStreamName
- stream name to insert into
-
getEventPrecedence
Returns null when no event-precedence is specified for the insert-into, or returns the expression returning the event-precedence- Returns:
- event-precedence expression
-
setEventPrecedence
Set to null when no event-precedence is specified for the insert-into, or set an expression returning the event-precedence- Parameters:
eventPrecedence
- event-precedence expression
-
toEPL
Description copied from interface:OnMergeMatchedAction
Render to EPL.- Specified by:
toEPL
in interfaceOnMergeMatchedAction
- Parameters:
writer
- to render to
-