Package org.apache.flink.cep.pattern
Class Quantifier
- java.lang.Object
-
- org.apache.flink.cep.pattern.Quantifier
-
public class Quantifier extends Object
A quantifier describing the Pattern. There are three main groups ofQuantifier
.- Single
- Looping
- Times
Each
Pattern
can be optional and have aQuantifier.ConsumingStrategy
. Looping and Times also hava an additional inner consuming strategy that is applied between accepted events in the pattern.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Quantifier.ConsumingStrategy
Describes strategy for which events are matched in thisPattern
.static class
Quantifier.QuantifierProperty
Properties that aQuantifier
can have.static class
Quantifier.Times
Describe the times thisPattern
can occur.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
combinations()
void
consecutive()
boolean
equals(Object o)
Quantifier.ConsumingStrategy
getConsumingStrategy()
Quantifier.ConsumingStrategy
getInnerConsumingStrategy()
void
greedy()
int
hashCode()
boolean
hasProperty(Quantifier.QuantifierProperty property)
static Quantifier
looping(Quantifier.ConsumingStrategy consumingStrategy)
static Quantifier
one(Quantifier.ConsumingStrategy consumingStrategy)
void
optional()
static Quantifier
times(Quantifier.ConsumingStrategy consumingStrategy)
String
toString()
-
-
-
Method Detail
-
one
public static Quantifier one(Quantifier.ConsumingStrategy consumingStrategy)
-
looping
public static Quantifier looping(Quantifier.ConsumingStrategy consumingStrategy)
-
times
public static Quantifier times(Quantifier.ConsumingStrategy consumingStrategy)
-
hasProperty
public boolean hasProperty(Quantifier.QuantifierProperty property)
-
getInnerConsumingStrategy
public Quantifier.ConsumingStrategy getInnerConsumingStrategy()
-
getConsumingStrategy
public Quantifier.ConsumingStrategy getConsumingStrategy()
-
combinations
public void combinations()
-
consecutive
public void consecutive()
-
optional
public void optional()
-
greedy
public void greedy()
-
-