public final class SkipToFirstStrategy extends AfterMatchSkipStrategy
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<String> |
getPatternName()
Name of pattern that processing will be skipped to.
|
protected EventId |
getPruningId(Collection<Map<String,List<EventId>>> match)
Retrieves event id of the pruning element from the given match based on the strategy.
|
int |
hashCode() |
boolean |
isSkipStrategy()
Tells if the strategy may skip some matches.
|
protected boolean |
shouldPrune(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.SkipToElementStrategy |
throwExceptionOnMiss()
Enables throwing exception if no events mapped to the *PatternName*.
|
String |
toString() |
noSkip, prune, skipPastLastEvent, skipToFirst, skipToLast, skipToNextpublic org.apache.flink.cep.nfa.aftermatch.SkipToElementStrategy throwExceptionOnMiss()
NoSkipStrategy will be usedpublic boolean isSkipStrategy()
AfterMatchSkipStrategyisSkipStrategy in class AfterMatchSkipStrategyprotected boolean shouldPrune(EventId startEventID, EventId pruningId)
AfterMatchSkipStrategyshouldPrune in class AfterMatchSkipStrategystartEventID - starting event id of a partial/completed matchpruningId - pruningId calculated by this strategyprotected EventId getPruningId(Collection<Map<String,List<EventId>>> match)
AfterMatchSkipStrategygetPruningId in class AfterMatchSkipStrategymatch - match corresponding to which should the pruning happenpublic Optional<String> getPatternName()
AfterMatchSkipStrategygetPatternName in class AfterMatchSkipStrategyCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.