Class PatternStream
java.lang.Object
com.espertech.esper.common.client.soda.Stream
com.espertech.esper.common.client.soda.ProjectedStream
com.espertech.esper.common.client.soda.PatternStream
- All Implemented Interfaces:
Serializable
A stream of events that is generated by pattern matches.
Patterns matches are events that match pattern expressions. Pattern expressions are built using
Patterns
.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.PatternStream
(PatternExpr expression) Ctor.PatternStream
(PatternExpr expression, String optStreamName) Ctor.PatternStream
(PatternExpr expression, String optStreamName, AnnotationPart[] annotations) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PatternStream
create
(PatternExpr expression) Creates a pattern stream from a pattern expression.static PatternStream
create
(PatternExpr expression, String optStreamName) Creates a named pattern stream from a pattern expression.Returns the pattern-level annotations, if anyReturns the pattern expression providing events to the stream.void
setAnnotations
(AnnotationPart[] annotations) Sets the pattern-level annotations, if anyvoid
setExpression
(PatternExpr expression) Sets the pattern expression providing events to the stream.void
toEPLProjectedStream
(StringWriter writer, EPStatementFormatter formatter) Represent as textual.void
toEPLProjectedStreamType
(StringWriter writer) Represent type as textual non complete.Methods inherited from class com.espertech.esper.common.client.soda.ProjectedStream
addView, addView, addView, addView, addView, getViews, isRetainIntersection, isRetainUnion, isUnidirectional, setRetainIntersection, setRetainUnion, setUnidirectional, setViews, toEPLStream, toEPLStreamOptions, toEPLStreamType, toEPLViews, unidirectional
Methods inherited from class com.espertech.esper.common.client.soda.Stream
getStreamName, setStreamName, toEPL
-
Constructor Details
-
PatternStream
public PatternStream()Ctor. -
PatternStream
Ctor.- Parameters:
expression
- pattern expression
-
PatternStream
Ctor.- Parameters:
expression
- pattern expressionoptStreamName
- is the pattern stream name (as-name)
-
PatternStream
Ctor.- Parameters:
expression
- pattern expressionoptStreamName
- is the pattern stream name (as-name)annotations
- annotations on pattern-level, if any
-
-
Method Details
-
create
Creates a pattern stream from a pattern expression.- Parameters:
expression
- pattern expression- Returns:
- stream
-
create
Creates a named pattern stream from a pattern expression.- Parameters:
expression
- pattern expressionoptStreamName
- is the pattern stream name (as-name)- Returns:
- stream
-
getExpression
Returns the pattern expression providing events to the stream.- Returns:
- pattern expression
-
setExpression
Sets the pattern expression providing events to the stream.- Parameters:
expression
- is the pattern expression
-
getAnnotations
Returns the pattern-level annotations, if any- Returns:
- pattern-level annotations
-
setAnnotations
Sets the pattern-level annotations, if any- Parameters:
annotations
- pattern-level annotations
-
toEPLProjectedStream
Description copied from class:ProjectedStream
Represent as textual.- Specified by:
toEPLProjectedStream
in classProjectedStream
- Parameters:
writer
- to output toformatter
- for newline-whitespace formatting
-
toEPLProjectedStreamType
Description copied from class:ProjectedStream
Represent type as textual non complete.- Specified by:
toEPLProjectedStreamType
in classProjectedStream
- Parameters:
writer
- to output to
-