|
||||||||||
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 | |
---|---|
|
ProjectedStream()
Ctor. |
protected |
ProjectedStream(java.util.List<View> views,
java.lang.String optStreamName)
Ctor. |
Method Summary | |
---|---|
ProjectedStream |
addView(java.lang.String namespace,
java.lang.String name)
Adds an un-parameterized view to the stream. |
ProjectedStream |
addView(java.lang.String namespace,
java.lang.String name,
Expression... parameters)
Adds a parameterized view to the stream. |
ProjectedStream |
addView(java.lang.String namespace,
java.lang.String name,
java.util.List<Expression> parameters)
Adds a parameterized view to the stream. |
ProjectedStream |
addView(View view)
Add a view to the stream. |
java.util.List<View> |
getViews()
Returns the list of views added to the stream. |
boolean |
isRetainIntersection()
Returns true if multiple data window shall be treated as an intersection. |
boolean |
isRetainUnion()
Returns true if multiple data window shall be treated as a union. |
boolean |
isUnidirectional()
Returns true if the stream as unidirectional, for use in unidirectional joins. |
void |
setRetainIntersection(boolean retainIntersection)
Set to true to have multiple data window be treated as a intersection. |
void |
setRetainUnion(boolean retainUnion)
Set to true to have multiple data window be treated as a union. |
void |
setUnidirectional(boolean isUnidirectional)
Set to true to indicate that a stream is unidirectional, for use in unidirectional joins. |
void |
setViews(java.util.List<View> views)
Sets the list of views onto the stream. |
abstract void |
toEPLProjectedStream(java.io.StringWriter writer,
EPStatementFormatter formatter)
Represent as textual. |
abstract void |
toEPLProjectedStreamType(java.io.StringWriter writer)
Represent type as textual non complete. |
void |
toEPLStream(java.io.StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in textual representation. |
void |
toEPLStreamOptions(java.io.StringWriter writer)
Renders the stream in textual representation any stream options, if present. |
void |
toEPLStreamType(java.io.StringWriter writer)
Renders the stream type under a non-complete textual representation for tool use |
protected static void |
toEPLViews(java.io.StringWriter writer,
java.util.List<View> views)
Renders the views onto the projected stream. |
ProjectedStream |
unidirectional(boolean isUnidirectional)
Set to unidirectional. |
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 |
---|
public ProjectedStream()
protected ProjectedStream(java.util.List<View> views, java.lang.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(java.io.StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formattingpublic abstract void toEPLProjectedStreamType(java.io.StringWriter writer)
writer
- to output topublic ProjectedStream addView(java.lang.String namespace, java.lang.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(java.lang.String namespace, java.lang.String name, java.util.List<Expression> 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(java.lang.String namespace, java.lang.String name, Expression... 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 java.util.List<View> getViews()
public void setViews(java.util.List<View> views)
views
- list of viewspublic void toEPLStream(java.io.StringWriter writer, EPStatementFormatter formatter)
toEPLStream
in class Stream
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLStreamType(java.io.StringWriter writer)
Stream
toEPLStreamType
in class Stream
writer
- to output topublic boolean isUnidirectional()
public void setUnidirectional(boolean isUnidirectional)
isUnidirectional
- true for unidirectional stream, applicable only for joinspublic ProjectedStream unidirectional(boolean isUnidirectional)
isUnidirectional
- try if unidirectional
public boolean isRetainUnion()
public void setRetainUnion(boolean retainUnion)
retainUnion
- indicator to unionpublic boolean isRetainIntersection()
public void setRetainIntersection(boolean retainIntersection)
retainIntersection
- indicator to intersectionprotected static void toEPLViews(java.io.StringWriter writer, java.util.List<View> views)
writer
- to render toviews
- to renderpublic void toEPLStreamOptions(java.io.StringWriter writer)
Stream
toEPLStreamOptions
in class Stream
writer
- to output to
|
© 2006-2015 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 |