com.espertech.esper.epl.spec
Class CreateWindowDesc

java.lang.Object
  extended by com.espertech.esper.epl.spec.CreateWindowDesc
All Implemented Interfaces:
MetaDefItem, java.io.Serializable

public class CreateWindowDesc
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

Specification for creating a named window.

See Also:
Serialized Form

Constructor Summary
CreateWindowDesc(java.lang.String windowName, java.util.List<ViewSpec> viewSpecs, StreamSpecOptions streamSpecOptions, boolean insert, ExprNode insertFilter, java.util.List<ColumnDesc> columns, java.lang.String asEventTypeName)
          Ctor.
 
Method Summary
 java.lang.String getAsEventTypeName()
           
 java.util.List<ColumnDesc> getColumns()
          Returns column names and types.
 ExprNode getInsertFilter()
          Returns the expression to filter insert-from events, or null if none supplied.
 java.lang.String getInsertFromWindow()
          Returns the window name to insert from.
 StreamSpecOptions getStreamSpecOptions()
          Returns the options for the stream such as unidirectional, retain-union etc.
 java.util.List<ViewSpec> getViewSpecs()
          Returns the view specifications.
 java.lang.String getWindowName()
          Returns the window name.
 boolean isInsert()
          Returns true for insert-from.
 void setInsertFilter(ExprNode insertFilter)
          Sets the filter expression to use to apply
 void setInsertFromWindow(java.lang.String insertFromWindow)
          Sets the source named window if inserting from another named window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateWindowDesc

public CreateWindowDesc(java.lang.String windowName,
                        java.util.List<ViewSpec> viewSpecs,
                        StreamSpecOptions streamSpecOptions,
                        boolean insert,
                        ExprNode insertFilter,
                        java.util.List<ColumnDesc> columns,
                        java.lang.String asEventTypeName)
Ctor.

Parameters:
windowName - the window name
viewSpecs - the view definitions
insert - true for insert-info
insertFilter - optional filter expression
streamSpecOptions - options such as retain-union etc
columns - list of columns, if using column syntax
Method Detail

getWindowName

public java.lang.String getWindowName()
Returns the window name.

Returns:
window name

getViewSpecs

public java.util.List<ViewSpec> getViewSpecs()
Returns the view specifications.

Returns:
view specs

isInsert

public boolean isInsert()
Returns true for insert-from.

Returns:
indicator to insert from another named window

getInsertFilter

public ExprNode getInsertFilter()
Returns the expression to filter insert-from events, or null if none supplied.

Returns:
insert filter expression

getInsertFromWindow

public java.lang.String getInsertFromWindow()
Returns the window name to insert from.

Returns:
window name to insert from

setInsertFilter

public void setInsertFilter(ExprNode insertFilter)
Sets the filter expression to use to apply

Parameters:
insertFilter - filter

setInsertFromWindow

public void setInsertFromWindow(java.lang.String insertFromWindow)
Sets the source named window if inserting from another named window.

Parameters:
insertFromWindow - source named window

getStreamSpecOptions

public StreamSpecOptions getStreamSpecOptions()
Returns the options for the stream such as unidirectional, retain-union etc.

Returns:
stream options

getColumns

public java.util.List<ColumnDesc> getColumns()
Returns column names and types.

Returns:
column descriptors

getAsEventTypeName

public java.lang.String getAsEventTypeName()

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