public class FilterStream extends ProjectedStream
Constructor and Description |
---|
FilterStream()
Ctor.
|
FilterStream(Filter filter)
Ctor.
|
FilterStream(Filter filter,
java.lang.String name)
Ctor.
|
FilterStream(Filter filter,
java.lang.String name,
java.util.List<View> views)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static FilterStream |
create(Filter filter)
Creates a stream using a filter that provides the event type name and filter expression to filter for.
|
static FilterStream |
create(Filter filter,
java.lang.String streamName)
Creates a stream using a filter that provides the event type name and filter expression to filter for.
|
static FilterStream |
create(java.lang.String eventTypeName)
Creates a stream of events of the given name.
|
static FilterStream |
create(java.lang.String eventTypeName,
Expression filter)
Creates a stream of events of the given event type name and names that stream.
|
static FilterStream |
create(java.lang.String eventTypeName,
java.lang.String streamName)
Creates a stream of events of the given event type name and names that stream.
|
static FilterStream |
create(java.lang.String eventTypeName,
java.lang.String streamName,
Expression filter)
Creates a stream of events of the given event type name and names that stream.
|
Filter |
getFilter()
Returns the filter.
|
void |
setFilter(Filter filter)
Sets the filter to use.
|
void |
toEPLProjectedStream(java.io.StringWriter writer,
EPStatementFormatter formatter)
Represent as textual.
|
void |
toEPLProjectedStreamType(java.io.StringWriter writer)
Represent type as textual non complete.
|
addView, addView, addView, addView, addView, getViews, isRetainIntersection, isRetainUnion, isUnidirectional, setRetainIntersection, setRetainUnion, setUnidirectional, setViews, toEPLStream, toEPLStreamOptions, toEPLStreamType, toEPLViews, unidirectional
getStreamName, setStreamName, toEPL
public FilterStream()
public FilterStream(Filter filter)
filter
- specifies what events to look forpublic FilterStream(Filter filter, java.lang.String name)
filter
- specifies what events to look forname
- is the as-name for the streampublic static FilterStream create(Filter filter)
filter
- defines what to look forpublic static FilterStream create(java.lang.String eventTypeName)
eventTypeName
- is the event type name to filter forpublic static FilterStream create(java.lang.String eventTypeName, java.lang.String streamName)
eventTypeName
- is the event type name to filter forstreamName
- is an optional stream namepublic static FilterStream create(Filter filter, java.lang.String streamName)
filter
- defines what to look forstreamName
- is an optional stream namepublic static FilterStream create(java.lang.String eventTypeName, Expression filter)
eventTypeName
- is the event type name to filter forfilter
- is the filter expression removing events from the streampublic static FilterStream create(java.lang.String eventTypeName, java.lang.String streamName, Expression filter)
eventTypeName
- is the event type name to filter forfilter
- is the filter expression removing events from the streamstreamName
- is an optional stream namepublic Filter getFilter()
public void setFilter(Filter filter)
filter
- to setpublic void toEPLProjectedStream(java.io.StringWriter writer, EPStatementFormatter formatter)
ProjectedStream
toEPLProjectedStream
in class ProjectedStream
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLProjectedStreamType(java.io.StringWriter writer)
ProjectedStream
toEPLProjectedStreamType
in class ProjectedStream
writer
- to output to