public abstract class ProjectedStream extends Stream
Modifier | Constructor and Description |
---|---|
|
ProjectedStream()
Ctor.
|
protected |
ProjectedStream(java.util.List<View> views,
java.lang.String optStreamName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
ProjectedStream |
addView(java.lang.String name,
Expression... parameters)
Adds a parameterized view to the stream.
|
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.
|
getStreamName, setStreamName, toEPL
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 unnamedpublic 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 windowpublic 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 parameterspublic 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 parameterspublic ProjectedStream addView(java.lang.String name, Expression... parameters)
name
- is the view name, for example "length" for a length windowparameters
- is a list of view parameterspublic ProjectedStream addView(View view)
view
- to addpublic 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 unidirectionalpublic 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