Class CEP


  • public class CEP
    extends Object
    Utility class for complex event processing.

    Methods which transform a DataStream into a PatternStream to do CEP.

    • Constructor Detail

      • CEP

        public CEP()
    • Method Detail

      • pattern

        public static <T> PatternStream<T> pattern​(org.apache.flink.streaming.api.datastream.DataStream<T> input,
                                                   Pattern<T,​?> pattern)
        Creates a PatternStream from an input data stream and a pattern.
        Type Parameters:
        T - Type of the input events
        Parameters:
        input - DataStream containing the input events
        pattern - Pattern specification which shall be detected
        Returns:
        Resulting pattern stream
      • pattern

        public static <T> PatternStream<T> pattern​(org.apache.flink.streaming.api.datastream.DataStream<T> input,
                                                   Pattern<T,​?> pattern,
                                                   EventComparator<T> comparator)
        Creates a PatternStream from an input data stream and a pattern.
        Type Parameters:
        T - Type of the input events
        Parameters:
        input - DataStream containing the input events
        pattern - Pattern specification which shall be detected
        comparator - Comparator to sort events with equal timestamps
        Returns:
        Resulting pattern stream