|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.Stream
com.espertech.esper.client.soda.ProjectedStream
public abstract class ProjectedStream
Abstract base class for streams that can be projected via views providing data window, uniqueness or other projections or deriving further information from streams.
Constructor Summary | |
---|---|
protected |
ProjectedStream(List<View> views,
String optStreamName)
Ctor. |
Method Summary | |
---|---|
ProjectedStream |
addView(String namespace,
String name)
Adds an un-parameterized view to the stream. |
ProjectedStream |
addView(String namespace,
String name,
List<Object> parameters)
Adds a parameterized view to the stream. |
ProjectedStream |
addView(String namespace,
String name,
Object... parameters)
Adds a parameterized view to the stream. |
ProjectedStream |
addView(View view)
Add a view to the stream. |
List<View> |
getViews()
Returns the list of views added to the stream. |
boolean |
isUnidirectional()
Returns true if the stream as unidirectional, for use in unidirectional joins. |
ProjectedStream |
setUnidirectional(boolean isUnidirectional)
Set to true to indicate that a stream is unidirectional, for use in unidirectional joins. |
void |
setViews(List<View> views)
Sets the list of views onto the stream. |
abstract void |
toEPLProjectedStream(StringWriter writer)
Represent as textual. |
void |
toEPLStream(StringWriter writer)
Renders the clause in textual representation. |
protected static void |
toEPLViews(StringWriter writer,
List<View> views)
Renders the views onto the projected stream. |
Methods inherited from class com.espertech.esper.client.soda.Stream |
---|
getStreamName, setStreamName, toEPL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ProjectedStream(List<View> views, String optStreamName)
views
- is a list of views upon the streamoptStreamName
- is the stream as-name, or null if unnamedMethod Detail |
---|
public abstract void toEPLProjectedStream(StringWriter writer)
writer
- to output topublic ProjectedStream addView(String namespace, String name)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length window
public ProjectedStream addView(String namespace, String name, List<Object> parameters)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length windowparameters
- is a list of view parameters
public ProjectedStream addView(String namespace, String name, Object... parameters)
namespace
- is the view namespace, for example "win" for most data windowsname
- is the view name, for example "length" for a length windowparameters
- is a list of view parameters
public ProjectedStream addView(View view)
view
- to add
public List<View> getViews()
public void setViews(List<View> views)
views
- list of viewspublic void toEPLStream(StringWriter writer)
toEPLStream
in class Stream
writer
- to output topublic boolean isUnidirectional()
public ProjectedStream setUnidirectional(boolean isUnidirectional)
isUnidirectional
- true for unidirectional stream, applicable only for joins
protected static void toEPLViews(StringWriter writer, List<View> views)
writer
- to render toviews
- to render
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |