Class SkipToNextStrategy
java.lang.Object
org.apache.flink.cep.nfa.aftermatch.AfterMatchSkipStrategy
org.apache.flink.cep.nfa.aftermatch.SkipToNextStrategy
- All Implemented Interfaces:
Serializable
Discards every partial match that started with the same event, emitted match was started.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected EventIdgetPruningId(Collection<Map<String, List<EventId>>> match) Retrieves event id of the pruning element from the given match based on the strategy.final booleanTells if the strategy may skip some matches.protected final booleanshouldPrune(EventId startEventID, EventId pruningId) Tells if the partial/completed match starting at given id should be prunned by given pruningId.toString()Methods inherited from class org.apache.flink.cep.nfa.aftermatch.AfterMatchSkipStrategy
getPatternName, noSkip, prune, skipPastLastEvent, skipToFirst, skipToLast, skipToNext
-
Field Details
-
INSTANCE
-
-
Method Details
-
getPruningId
Description copied from class:AfterMatchSkipStrategyRetrieves event id of the pruning element from the given match based on the strategy.- Specified by:
getPruningIdin classAfterMatchSkipStrategy- Parameters:
match- match corresponding to which should the pruning happen- Returns:
- pruning event id
-
toString
-
isSkipStrategy
public final boolean isSkipStrategy()Description copied from class:AfterMatchSkipStrategyTells if the strategy may skip some matches.- Specified by:
isSkipStrategyin classAfterMatchSkipStrategy- Returns:
- false if the strategy is NO_SKIP strategy
-