Java Code Examples for org.apache.flink.cep.nfa.aftermatch.AfterMatchSkipStrategy#noSkip()
The following examples show how to use
org.apache.flink.cep.nfa.aftermatch.AfterMatchSkipStrategy#noSkip() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CepOperator.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
public CepOperator( final TypeSerializer<IN> inputSerializer, final boolean isProcessingTime, final NFACompiler.NFAFactory<IN> nfaFactory, @Nullable final EventComparator<IN> comparator, @Nullable final AfterMatchSkipStrategy afterMatchSkipStrategy, final PatternProcessFunction<IN, OUT> function, @Nullable final OutputTag<IN> lateDataOutputTag) { super(function); this.inputSerializer = Preconditions.checkNotNull(inputSerializer); this.nfaFactory = Preconditions.checkNotNull(nfaFactory); this.isProcessingTime = isProcessingTime; this.comparator = comparator; this.lateDataOutputTag = lateDataOutputTag; if (afterMatchSkipStrategy == null) { this.afterMatchSkipStrategy = AfterMatchSkipStrategy.noSkip(); } else { this.afterMatchSkipStrategy = afterMatchSkipStrategy; } }
Example 2
Source File: CepOperator.java From flink with Apache License 2.0 | 6 votes |
public CepOperator( final TypeSerializer<IN> inputSerializer, final boolean isProcessingTime, final NFACompiler.NFAFactory<IN> nfaFactory, @Nullable final EventComparator<IN> comparator, @Nullable final AfterMatchSkipStrategy afterMatchSkipStrategy, final PatternProcessFunction<IN, OUT> function, @Nullable final OutputTag<IN> lateDataOutputTag) { super(function); this.inputSerializer = Preconditions.checkNotNull(inputSerializer); this.nfaFactory = Preconditions.checkNotNull(nfaFactory); this.isProcessingTime = isProcessingTime; this.comparator = comparator; this.lateDataOutputTag = lateDataOutputTag; if (afterMatchSkipStrategy == null) { this.afterMatchSkipStrategy = AfterMatchSkipStrategy.noSkip(); } else { this.afterMatchSkipStrategy = afterMatchSkipStrategy; } }
Example 3
Source File: CepOperator.java From flink with Apache License 2.0 | 6 votes |
public CepOperator( final TypeSerializer<IN> inputSerializer, final boolean isProcessingTime, final NFACompiler.NFAFactory<IN> nfaFactory, @Nullable final EventComparator<IN> comparator, @Nullable final AfterMatchSkipStrategy afterMatchSkipStrategy, final PatternProcessFunction<IN, OUT> function, @Nullable final OutputTag<IN> lateDataOutputTag) { super(function); this.inputSerializer = Preconditions.checkNotNull(inputSerializer); this.nfaFactory = Preconditions.checkNotNull(nfaFactory); this.isProcessingTime = isProcessingTime; this.comparator = comparator; this.lateDataOutputTag = lateDataOutputTag; if (afterMatchSkipStrategy == null) { this.afterMatchSkipStrategy = AfterMatchSkipStrategy.noSkip(); } else { this.afterMatchSkipStrategy = afterMatchSkipStrategy; } }
Example 4
Source File: NFATestHarness.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
NFATestHarnessBuilderNFA(NFA<Event> nfa) { super(AfterMatchSkipStrategy.noSkip()); this.nfa = nfa; this.nfaState = nfa.createInitialNFAState(); }
Example 5
Source File: NFATestHarness.java From flink with Apache License 2.0 | 4 votes |
NFATestHarnessBuilderNFA(NFA<Event> nfa) { super(AfterMatchSkipStrategy.noSkip()); this.nfa = nfa; this.nfaState = nfa.createInitialNFAState(); }
Example 6
Source File: NFATestHarness.java From flink with Apache License 2.0 | 4 votes |
NFATestHarnessBuilderNFA(NFA<Event> nfa) { super(AfterMatchSkipStrategy.noSkip()); this.nfa = nfa; this.nfaState = nfa.createInitialNFAState(); }
Example 7
Source File: Pattern.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Starts a new pattern sequence. The provided name is the one of the initial pattern * of the new sequence. Furthermore, the base type of the event sequence is set. * * @param name The name of starting pattern of the new pattern sequence * @param <X> Base type of the event pattern * @return The first pattern of a pattern sequence */ public static <X> Pattern<X, X> begin(final String name) { return new Pattern<>(name, null, ConsumingStrategy.STRICT, AfterMatchSkipStrategy.noSkip()); }
Example 8
Source File: Pattern.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Starts a new pattern sequence. The provided pattern is the initial pattern * of the new sequence. * * @param group the pattern to begin with * @return the first pattern of a pattern sequence */ public static <T, F extends T> GroupPattern<T, F> begin(Pattern<T, F> group) { return new GroupPattern<>(null, group, ConsumingStrategy.STRICT, AfterMatchSkipStrategy.noSkip()); }
Example 9
Source File: Pattern.java From flink with Apache License 2.0 | 2 votes |
/** * Starts a new pattern sequence. The provided name is the one of the initial pattern * of the new sequence. Furthermore, the base type of the event sequence is set. * * @param name The name of starting pattern of the new pattern sequence * @param <X> Base type of the event pattern * @return The first pattern of a pattern sequence */ public static <X> Pattern<X, X> begin(final String name) { return new Pattern<>(name, null, ConsumingStrategy.STRICT, AfterMatchSkipStrategy.noSkip()); }
Example 10
Source File: Pattern.java From flink with Apache License 2.0 | 2 votes |
/** * Starts a new pattern sequence. The provided pattern is the initial pattern * of the new sequence. * * @param group the pattern to begin with * @return the first pattern of a pattern sequence */ public static <T, F extends T> GroupPattern<T, F> begin(Pattern<T, F> group) { return new GroupPattern<>(null, group, ConsumingStrategy.STRICT, AfterMatchSkipStrategy.noSkip()); }
Example 11
Source File: Pattern.java From flink with Apache License 2.0 | 2 votes |
/** * Starts a new pattern sequence. The provided name is the one of the initial pattern * of the new sequence. Furthermore, the base type of the event sequence is set. * * @param name The name of starting pattern of the new pattern sequence * @param <X> Base type of the event pattern * @return The first pattern of a pattern sequence */ public static <X> Pattern<X, X> begin(final String name) { return new Pattern<>(name, null, ConsumingStrategy.STRICT, AfterMatchSkipStrategy.noSkip()); }
Example 12
Source File: Pattern.java From flink with Apache License 2.0 | 2 votes |
/** * Starts a new pattern sequence. The provided pattern is the initial pattern * of the new sequence. * * @param group the pattern to begin with * @return the first pattern of a pattern sequence */ public static <T, F extends T> GroupPattern<T, F> begin(Pattern<T, F> group) { return new GroupPattern<>(null, group, ConsumingStrategy.STRICT, AfterMatchSkipStrategy.noSkip()); }