Class RichPatternSelectFunction<IN,OUT>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.cep.RichPatternSelectFunction<IN,OUT>
Type Parameters:
IN - Type of the input elements
OUT - Type of the output element
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, PatternSelectFunction<IN,OUT>

public abstract class RichPatternSelectFunction<IN,OUT> extends org.apache.flink.api.common.functions.AbstractRichFunction implements PatternSelectFunction<IN,OUT>
Rich variant of the PatternSelectFunction. As a RichFunction, it gives access to the RuntimeContext and provides setup and teardown methods: RichFunction.open(OpenContext) and RichFunction.close().
See Also:
  • Constructor Details

    • RichPatternSelectFunction

      public RichPatternSelectFunction()
  • Method Details

    • select

      public abstract OUT select(Map<String,List<IN>> pattern) throws Exception
      Description copied from interface: PatternSelectFunction
      Generates a result from the given map of events. The events are identified by their names. Only one resulting element can be generated.
      Specified by:
      select in interface PatternSelectFunction<IN,OUT>
      Parameters:
      pattern - Map containing the found pattern. Events are identified by their names
      Returns:
      Resulting element
      Throws:
      Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.