public class FilterStream extends ProjectedStream
Constructor and Description |
---|
FilterStream()
Ctor.
|
FilterStream(Filter filter)
Ctor.
|
FilterStream(Filter filter,
String name)
Ctor.
|
FilterStream(Filter filter,
String name,
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,
String streamName)
Creates a stream using a filter that provides the event type name and filter expression to filter for.
|
static FilterStream |
create(String eventTypeName)
Creates a stream of events of the given name.
|
static FilterStream |
create(String eventTypeName,
Expression filter)
Creates a stream of events of the given event type name and names that stream.
|
static FilterStream |
create(String eventTypeName,
String streamName)
Creates a stream of events of the given event type name and names that stream.
|
static FilterStream |
create(String eventTypeName,
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(StringWriter writer,
EPStatementFormatter formatter)
Represent as textual.
|
void |
toEPLProjectedStreamType(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, 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(String eventTypeName)
eventTypeName
- is the event type name to filter forpublic static FilterStream create(String eventTypeName, String streamName)
eventTypeName
- is the event type name to filter forstreamName
- is an optional stream namepublic static FilterStream create(Filter filter, String streamName)
filter
- defines what to look forstreamName
- is an optional stream namepublic static FilterStream create(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(String eventTypeName, 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(StringWriter writer, EPStatementFormatter formatter)
ProjectedStream
toEPLProjectedStream
in class ProjectedStream
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLProjectedStreamType(StringWriter writer)
ProjectedStream
toEPLProjectedStreamType
in class ProjectedStream
writer
- to output to