com.espertech.esper.client.soda
Class OnMergeMatchedInsertAction

java.lang.Object
  extended by com.espertech.esper.client.soda.OnMergeMatchedInsertAction
All Implemented Interfaces:
OnMergeMatchedAction, java.io.Serializable

public class OnMergeMatchedInsertAction
extends java.lang.Object
implements OnMergeMatchedAction

For use with on-merge clauses, inserts into a named window if matching rows are not found.

See Also:
Serialized Form

Constructor Summary
OnMergeMatchedInsertAction()
          Ctor.
OnMergeMatchedInsertAction(java.util.List<java.lang.String> columnNames, java.util.List<SelectClauseElement> selectList, Expression whereClause, java.lang.String optionalStreamName)
          Ctor.
 
Method Summary
 java.util.List<java.lang.String> getColumnNames()
          Returns the insert-into column names, if provided.
 java.lang.String getOptionalStreamName()
          Returns the insert-into stream name.
 java.util.List<SelectClauseElement> getSelectList()
          Returns the select expressions.
 Expression getWhereClause()
          Returns the action condition, or null if undefined.
 void setColumnNames(java.util.List<java.lang.String> columnNames)
          Sets the insert-into column names, can be empty list.
 void setOptionalStreamName(java.lang.String optionalStreamName)
          Sets the insert-into stream name.
 void setSelectList(java.util.List<SelectClauseElement> selectList)
          Sets the select expressions.
 void setWhereClause(Expression whereClause)
          Sets the action condition, or null if undefined.
 void toEPL(java.io.StringWriter writer)
          Render to EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnMergeMatchedInsertAction

public OnMergeMatchedInsertAction(java.util.List<java.lang.String> columnNames,
                                  java.util.List<SelectClauseElement> selectList,
                                  Expression whereClause,
                                  java.lang.String optionalStreamName)
Ctor.

Parameters:
columnNames - insert-into column names, or empty list if none provided
selectList - select expression list
whereClause - optional condition or null
optionalStreamName - optionally a stream name for insert-into

OnMergeMatchedInsertAction

public OnMergeMatchedInsertAction()
Ctor.

Method Detail

getWhereClause

public Expression getWhereClause()
Returns the action condition, or null if undefined.

Returns:
condition

setWhereClause

public void setWhereClause(Expression whereClause)
Sets the action condition, or null if undefined.

Parameters:
whereClause - to set, or null to remove the condition

getColumnNames

public java.util.List<java.lang.String> getColumnNames()
Returns the insert-into column names, if provided.

Returns:
column names

setColumnNames

public void setColumnNames(java.util.List<java.lang.String> columnNames)
Sets the insert-into column names, can be empty list.

Parameters:
columnNames - column names to set

getSelectList

public java.util.List<SelectClauseElement> getSelectList()
Returns the select expressions.

Returns:
expression list

setSelectList

public void setSelectList(java.util.List<SelectClauseElement> selectList)
Sets the select expressions.

Parameters:
selectList - expression list

getOptionalStreamName

public java.lang.String getOptionalStreamName()
Returns the insert-into stream name.

Returns:
stream name

setOptionalStreamName

public void setOptionalStreamName(java.lang.String optionalStreamName)
Sets the insert-into stream name.

Parameters:
optionalStreamName - stream name to insert into

toEPL

public void toEPL(java.io.StringWriter writer)
Description copied from interface: OnMergeMatchedAction
Render to EPL.

Specified by:
toEPL in interface OnMergeMatchedAction
Parameters:
writer - to render to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com