public abstract class ProjectedStream extends Stream
Modifier | Constructor and Description |
---|---|
|
ProjectedStream()
Ctor.
|
protected |
ProjectedStream(List<View> views,
String optStreamName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
ProjectedStream |
addView(String name,
Expression... parameters)
Adds a parameterized view to the stream.
|
ProjectedStream |
addView(String namespace,
String name)
Adds an un-parameterized view to the stream.
|
ProjectedStream |
addView(String namespace,
String name,
Expression... parameters)
Adds a parameterized view to the stream.
|
ProjectedStream |
addView(String namespace,
String name,
List<Expression> 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 |
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(List<View> views)
Sets the list of views onto the stream.
|
abstract void |
toEPLProjectedStream(StringWriter writer,
EPStatementFormatter formatter)
Represent as textual.
|
abstract void |
toEPLProjectedStreamType(StringWriter writer)
Represent type as textual non complete.
|
void |
toEPLStream(StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in textual representation.
|
void |
toEPLStreamOptions(StringWriter writer)
Renders the stream in textual representation any stream options, if present.
|
void |
toEPLStreamType(StringWriter writer)
Renders the stream type under a non-complete textual representation for tool use
|
protected static void |
toEPLViews(StringWriter writer,
List<View> views)
Renders the views onto the projected stream.
|
ProjectedStream |
unidirectional(boolean isUnidirectional)
Set to unidirectional.
|
getStreamName, setStreamName, toEPL
public abstract void toEPLProjectedStream(StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formattingpublic abstract void toEPLProjectedStreamType(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 windowpublic ProjectedStream addView(String namespace, String name, 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(String namespace, 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(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 List<View> getViews()
public void setViews(List<View> views)
views
- list of viewspublic void toEPLStream(StringWriter writer, EPStatementFormatter formatter)
toEPLStream
in class Stream
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLStreamType(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(StringWriter writer, List<View> views)
writer
- to render toviews
- to renderpublic void toEPLStreamOptions(StringWriter writer)
Stream
toEPLStreamOptions
in class Stream
writer
- to output to