Class SkipToFirstStrategy

  • All Implemented Interfaces:
    Serializable

    public final class SkipToFirstStrategy
    extends AfterMatchSkipStrategy
    Discards every partial match that started before the first event of emitted match mapped to *PatternName*.
    See Also:
    Serialized Form
    • Method Detail

      • 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, NoSkipStrategy will be used
      • shouldPrune

        protected boolean shouldPrune​(EventId startEventID,
                                      EventId pruningId)
        Description copied from class: AfterMatchSkipStrategy
        Tells if the partial/completed match starting at given id should be prunned by given pruningId.
        Specified by:
        shouldPrune in class AfterMatchSkipStrategy
        Parameters:
        startEventID - starting event id of a partial/completed match
        pruningId - pruningId calculated by this strategy
        Returns:
        true if the match should be pruned
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object