public class OnMergeMatchedInsertAction extends Object implements OnMergeMatchedAction
Constructor and Description |
---|
OnMergeMatchedInsertAction()
Ctor.
|
OnMergeMatchedInsertAction(List<String> columnNames,
List<SelectClauseElement> selectList,
Expression whereClause,
String optionalStreamName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getColumnNames()
Returns the insert-into column names, if provided.
|
String |
getOptionalStreamName()
Returns the insert-into stream name.
|
List<SelectClauseElement> |
getSelectList()
Returns the select expressions.
|
Expression |
getWhereClause()
Returns the action condition, or null if undefined.
|
void |
setColumnNames(List<String> columnNames)
Sets the insert-into column names, can be empty list.
|
void |
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.
|
public OnMergeMatchedInsertAction(List<String> columnNames, List<SelectClauseElement> selectList, Expression whereClause, String optionalStreamName)
columnNames
- insert-into column names, or empty list if none providedselectList
- select expression listwhereClause
- optional condition or nulloptionalStreamName
- optionally a stream name for insert-intopublic OnMergeMatchedInsertAction()
public Expression getWhereClause()
public void setWhereClause(Expression whereClause)
whereClause
- to set, or null to remove the conditionpublic List<String> getColumnNames()
public void setColumnNames(List<String> columnNames)
columnNames
- column names to setpublic List<SelectClauseElement> getSelectList()
public void setSelectList(List<SelectClauseElement> selectList)
selectList
- expression listpublic String getOptionalStreamName()
public void setOptionalStreamName(String optionalStreamName)
optionalStreamName
- stream name to insert intopublic void toEPL(StringWriter writer)
OnMergeMatchedAction
toEPL
in interface OnMergeMatchedAction
writer
- to render to