Package org.apache.flink.cep.pattern
Class GroupPattern<T,F extends T>
- java.lang.Object
-
- org.apache.flink.cep.pattern.Pattern<T,F>
-
- org.apache.flink.cep.pattern.GroupPattern<T,F>
-
- Type Parameters:
T
- Base type of the elements appearing in the patternF
- Subtype of T to which the current pattern operator is constrained
public class GroupPattern<T,F extends T> extends Pattern<T,F>
Base class for a group pattern definition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern<T,? extends T>
getRawPattern()
Pattern<T,F>
or(IterativeCondition<F> condition)
Adds a condition that has to be satisfied by an event in order to be considered a match.<S extends F>
Pattern<T,S>subtype(Class<S> subtypeClass)
Applies a subtype constraint on the current pattern.Pattern<T,F>
where(IterativeCondition<F> condition)
Adds a condition that has to be satisfied by an event in order to be considered a match.-
Methods inherited from class org.apache.flink.cep.pattern.Pattern
allowCombinations, begin, begin, begin, begin, consecutive, followedBy, followedBy, followedByAny, followedByAny, getAfterMatchSkipStrategy, getCondition, getName, getPrevious, getQuantifier, getTimes, getUntilCondition, getWindowSize, getWindowSize, greedy, next, next, notFollowedBy, notNext, oneOrMore, oneOrMore, optional, times, times, times, times, timesOrMore, timesOrMore, toString, until, within, within
-
-
-
-
Method Detail
-
where
public Pattern<T,F> where(IterativeCondition<F> condition)
Description copied from class:Pattern
Adds a condition that has to be satisfied by an event in order to be considered a match. If another condition has already been set, the new one is going to be combined with the previous with a logicalAND
. In other case, this is going to be the only condition.
-
or
public Pattern<T,F> or(IterativeCondition<F> condition)
Description copied from class:Pattern
Adds a condition that has to be satisfied by an event in order to be considered a match. If another condition has already been set, the new one is going to be combined with the previous with a logicalOR
. In other case, this is going to be the only condition.
-
subtype
public <S extends F> Pattern<T,S> subtype(Class<S> subtypeClass)
Description copied from class:Pattern
Applies a subtype constraint on the current pattern. This means that an event has to be of the given subtype in order to be matched.
-
-