Class PatternProcessFunction<IN,​OUT>

    • Constructor Detail

      • PatternProcessFunction

        public PatternProcessFunction()
    • Method Detail

      • processMatch

        public abstract void processMatch​(Map<String,​List<IN>> match,
                                          PatternProcessFunction.Context ctx,
                                          Collector<OUT> out)
                                   throws Exception
        Generates resulting elements given a map of detected pattern events. The events are identified by their specified names.

        TimeContext.timestamp() in this case returns the time of the last element that was assigned to the match, resulting in this partial match being finished.

        Parameters:
        match - map containing the found pattern. Events are identified by their names.
        ctx - enables access to time features and emitting results through side outputs
        out - Collector used to output the generated elements
        Throws:
        Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.