com.espertech.esper.client.soda
Class OnSelectClause

java.lang.Object
  extended by com.espertech.esper.client.soda.OnClause
      extended by com.espertech.esper.client.soda.OnSelectClause
All Implemented Interfaces:
java.io.Serializable

public class OnSelectClause
extends OnClause

A clause to delete from a named window based on a triggering event arriving and correlated to the named window events to be deleted.

See Also:
Serialized Form

Constructor Summary
OnSelectClause()
          Ctor.
OnSelectClause(java.lang.String windowName, java.lang.String optionalAsName)
          Ctor.
 
Method Summary
static OnSelectClause create(java.lang.String windowName, java.lang.String optionalAsName)
          Creates an on-select clause.
 java.lang.String getOptionalAsName()
          Returns the as-provided name for the named window.
 java.lang.String getWindowName()
          Returns the name of the named window to delete from.
 boolean isDeleteAndSelect()
          Returns indicator whether select-and-delete or just select
 void setDeleteAndSelect(boolean deleteAndSelect)
          Sets indicator whether select-and-delete or just select
 void setOptionalAsName(java.lang.String optionalAsName)
          Sets the as-provided name for the named window.
 void setWindowName(java.lang.String windowName)
          Sets the name of the named window.
 void toEPL(java.io.StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class com.espertech.esper.client.soda.OnClause
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnSelectClause

public OnSelectClause()
Ctor.


OnSelectClause

public OnSelectClause(java.lang.String windowName,
                      java.lang.String optionalAsName)
Ctor.

Parameters:
windowName - is the named window name
optionalAsName - is the name of the named window
Method Detail

create

public static OnSelectClause create(java.lang.String windowName,
                                    java.lang.String optionalAsName)
Creates an on-select clause.

Parameters:
windowName - is the named window name
optionalAsName - is the optional name
Returns:
on-select clause

toEPL

public void toEPL(java.io.StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

getWindowName

public java.lang.String getWindowName()
Returns the name of the named window to delete from.

Returns:
named window name

setWindowName

public void setWindowName(java.lang.String windowName)
Sets the name of the named window.

Parameters:
windowName - window name

getOptionalAsName

public java.lang.String getOptionalAsName()
Returns the as-provided name for the named window.

Returns:
name

setOptionalAsName

public void setOptionalAsName(java.lang.String optionalAsName)
Sets the as-provided name for the named window.

Parameters:
optionalAsName - name to set for window

isDeleteAndSelect

public boolean isDeleteAndSelect()
Returns indicator whether select-and-delete or just select

Returns:
indicator

setDeleteAndSelect

public void setDeleteAndSelect(boolean deleteAndSelect)
Sets indicator whether select-and-delete or just select

Parameters:
deleteAndSelect - indicator

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