Uses of Class
org.apache.flink.cep.pattern.Pattern
Packages that use Pattern
Package
Description
-
Uses of Pattern in org.apache.flink.cep
Methods in org.apache.flink.cep with parameters of type PatternModifier and TypeMethodDescriptionstatic <T> PatternStream<T>Creates aPatternStreamfrom an input data stream and a pattern.static <T> PatternStream<T>CEP.pattern(org.apache.flink.streaming.api.datastream.DataStream<T> input, Pattern<T, ?> pattern, EventComparator<T> comparator) Creates aPatternStreamfrom an input data stream and a pattern. -
Uses of Pattern in org.apache.flink.cep.nfa.compiler
Methods in org.apache.flink.cep.nfa.compiler with parameters of type PatternModifier and TypeMethodDescriptionstatic booleanNFACompiler.canProduceEmptyMatches(Pattern<?, ?> pattern) Verifies if the provided pattern can possibly generate empty match.static <T> NFACompiler.NFAFactory<T>NFACompiler.compileFactory(Pattern<T, ?> pattern, boolean timeoutHandling) Compiles the given pattern into aNFACompiler.NFAFactory. -
Uses of Pattern in org.apache.flink.cep.pattern
Subclasses of Pattern in org.apache.flink.cep.patternModifier and TypeClassDescriptionclassGroupPattern<T,F extends T> Base class for a group pattern definition.Methods in org.apache.flink.cep.pattern that return PatternModifier and TypeMethodDescriptionPattern.allowCombinations()Applicable only toQuantifier.looping(ConsumingStrategy)andQuantifier.times(ConsumingStrategy)patterns, this option allows more flexibility to the matching events.static <X> Pattern<X,X> Starts a new pattern sequence.static <X> Pattern<X,X> Pattern.begin(String name, AfterMatchSkipStrategy afterMatchSkipStrategy) Starts a new pattern sequence.Pattern.consecutive()Works in conjunction withoneOrMore()ortimes(int).Pattern.followedBy(String name) Appends a new pattern to the existing one.Pattern.followedByAny(String name) Appends a new pattern to the existing one.Pattern.getPrevious()GroupPattern.getRawPattern()Pattern.greedy()Specifies that this pattern is greedy.Appends a new pattern to the existing one.Pattern.notFollowedBy(String name) Appends a new pattern to the existing one.Appends a new pattern to the existing one.Pattern.oneOrMore()Specifies that this pattern can occurone or moretimes.Specifies that this pattern can occurone or moretimes and time interval corresponds to the maximum time gap between previous and current event for each times.Pattern.optional()Specifies that this pattern is optional for a final match of the pattern sequence to happen.GroupPattern.or(IterativeCondition<F> condition) Pattern.or(IterativeCondition<F> condition) Adds a condition that has to be satisfied by an event in order to be considered a match.Applies a subtype constraint on the current pattern.Pattern.times(int times) Specifies exact number of times that this pattern should be matched.Pattern.times(int from, int to) Specifies that the pattern can occur between from and to times.Specifies that the pattern can occur between from and to times with time interval corresponds to the maximum time gap between previous and current event for each times.Specifies exact number of times that this pattern should be matched and time interval corresponds to the maximum time gap between previous and current event for each times.Pattern.timesOrMore(int times) Specifies that this pattern can occur the specified times at least.Pattern.timesOrMore(int times, Duration windowTime) Specifies that this pattern can occur the specified times at least with interval corresponds to the maximum time gap between previous and current event for each times.Pattern.until(IterativeCondition<F> untilCondition) Applies a stop condition for a looping state.GroupPattern.where(IterativeCondition<F> condition) Pattern.where(IterativeCondition<F> condition) Adds a condition that has to be satisfied by an event in order to be considered a match.Defines the maximum time interval in which a matching pattern has to be completed in order to be considered valid.Pattern.within(Duration windowTime, WithinType withinType) Defines the maximum time interval in which a matching pattern has to be completed in order to be considered valid.Methods in org.apache.flink.cep.pattern with parameters of type PatternModifier and TypeMethodDescriptionstatic <T,F extends T>
GroupPattern<T,F> Starts a new pattern sequence.static <T,F extends T>
GroupPattern<T,F> Pattern.begin(Pattern<T, F> group, AfterMatchSkipStrategy afterMatchSkipStrategy) Starts a new pattern sequence.Pattern.followedBy(Pattern<T, F> group) Appends a new group pattern to the existing one.Pattern.followedByAny(Pattern<T, F> group) Appends a new group pattern to the existing one.Appends a new group pattern to the existing one.Constructors in org.apache.flink.cep.pattern with parameters of type PatternModifierConstructorDescriptionprotectedPattern(String name, Pattern<T, ? extends T> previous, Quantifier.ConsumingStrategy consumingStrategy, AfterMatchSkipStrategy afterMatchSkipStrategy)