public class CEP extends Object
Methods which transform a DataStream
into a PatternStream
to do CEP.
Constructor and Description |
---|
CEP() |
Modifier and Type | Method and Description |
---|---|
static <T> PatternStream<T> |
pattern(DataStream<T> input,
Pattern<T,?> pattern)
Creates a
PatternStream from an input data stream and a pattern. |
static <T> PatternStream<T> |
pattern(DataStream<T> input,
Pattern<T,?> pattern,
EventComparator<T> comparator)
Creates a
PatternStream from an input data stream and a pattern. |
public static <T> PatternStream<T> pattern(DataStream<T> input, Pattern<T,?> pattern)
PatternStream
from an input data stream and a pattern.T
- Type of the input eventsinput
- DataStream containing the input eventspattern
- Pattern specification which shall be detectedpublic static <T> PatternStream<T> pattern(DataStream<T> input, Pattern<T,?> pattern, EventComparator<T> comparator)
PatternStream
from an input data stream and a pattern.T
- Type of the input eventsinput
- DataStream containing the input eventspattern
- Pattern specification which shall be detectedcomparator
- Comparator to sort events with equal timestampsCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.