Class SkipToLastStrategy
java.lang.Object
org.apache.flink.cep.nfa.aftermatch.AfterMatchSkipStrategy
org.apache.flink.cep.nfa.aftermatch.SkipToLastStrategy
- All Implemented Interfaces:
Serializable
Discards every partial match that started before the last event of emitted match mapped to
*PatternName*.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanName of pattern that processing will be skipped to.protected EventIdgetPruningId(Collection<Map<String, List<EventId>>> match) Retrieves event id of the pruning element from the given match based on the strategy.inthashCode()booleanTells if the strategy may skip some matches.protected booleanshouldPrune(EventId startEventID, EventId pruningId) Tells if the partial/completed match starting at given id should be prunned by given pruningId.org.apache.flink.cep.nfa.aftermatch.SkipToElementStrategyEnables throwing exception if no events mapped to the *PatternName*.toString()Methods inherited from class org.apache.flink.cep.nfa.aftermatch.AfterMatchSkipStrategy
noSkip, prune, skipPastLastEvent, skipToFirst, skipToLast, skipToNext
-
Method Details
-
throwExceptionOnMiss
public org.apache.flink.cep.nfa.aftermatch.SkipToElementStrategy throwExceptionOnMiss()Enables throwing exception if no events mapped to the *PatternName*. If not enabled and no events were mapped,NoSkipStrategywill be used -
toString
-
isSkipStrategy
public 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
-
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
-
getPatternName
Description copied from class:AfterMatchSkipStrategyName of pattern that processing will be skipped to.- Overrides:
getPatternNamein classAfterMatchSkipStrategy
-
equals
-
hashCode
public int hashCode()
-