net.esper.client.soda
Class CreateWindowClause

java.lang.Object
  extended by net.esper.client.soda.CreateWindowClause
All Implemented Interfaces:
Serializable

public class CreateWindowClause
extends Object
implements Serializable

Create a named window, defining the parameter of the named window such as window name and data window view name(s).

See Also:
Serialized Form

Constructor Summary
CreateWindowClause(String windowName, List<View> views)
          Ctor.
CreateWindowClause(String windowName, View[] viewArr)
          Ctor.
 
Method Summary
 CreateWindowClause addView(String namespace, String name)
          Adds an un-parameterized view to the named window.
 CreateWindowClause addView(String namespace, String name, List<Object> parameters)
          Adds a parameterized view to the named window.
static CreateWindowClause create(String windowName, View... views)
          Creates a clause to create a named window.
static CreateWindowClause create(String windowName, View view)
          Creates a clause to create a named window.
 List<View> getViews()
          Returns the views onto the named window.
 String getWindowName()
          Returns the window name.
 void setViews(List<View> views)
          Sets the views onto the named window.
 void setWindowName(String windowName)
          Sets the window name.
 void toEQL(StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateWindowClause

public CreateWindowClause(String windowName,
                          View[] viewArr)
Ctor.

Parameters:
windowName - is the name of the window to create
viewArr - is the list of data window views

CreateWindowClause

public CreateWindowClause(String windowName,
                          List<View> views)
Ctor.

Parameters:
windowName - is the name of the window to create
views - is a list of data window views
Method Detail

create

public static CreateWindowClause create(String windowName,
                                        View view)
Creates a clause to create a named window.

Parameters:
windowName - is the name of the named window
view - is a data window view
Returns:
create window clause

create

public static CreateWindowClause create(String windowName,
                                        View... views)
Creates a clause to create a named window.

Parameters:
windowName - is the name of the named window
views - is the data window views
Returns:
create window clause

addView

public CreateWindowClause addView(String namespace,
                                  String name)
Adds an un-parameterized view to the named window.

Parameters:
namespace - is the view namespace, for example "win" for most data windows
name - is the view name, for example "length" for a length window
Returns:
named window creation clause

addView

public CreateWindowClause addView(String namespace,
                                  String name,
                                  List<Object> parameters)
Adds a parameterized view to the named window.

Parameters:
namespace - is the view namespace, for example "win" for most data windows
name - is the view name, for example "length" for a length window
parameters - is a list of view parameters
Returns:
named window creation clause

toEQL

public void toEQL(StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

getWindowName

public String getWindowName()
Returns the window name.

Returns:
window name

setWindowName

public void setWindowName(String windowName)
Sets the window name.

Parameters:
windowName - is the name to set

getViews

public List<View> getViews()
Returns the views onto the named window.

Returns:
named window data views

setViews

public void setViews(List<View> views)
Sets the views onto the named window.

Parameters:
views - to set

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com