Package org.apache.flink.cep
Class RichPatternFlatSelectFunction<IN,OUT>
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.cep.RichPatternFlatSelectFunction<IN,OUT>
-
- Type Parameters:
IN- Type of the input elementsOUT- Type of the output element
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction,PatternFlatSelectFunction<IN,OUT>
public abstract class RichPatternFlatSelectFunction<IN,OUT> extends org.apache.flink.api.common.functions.AbstractRichFunction implements PatternFlatSelectFunction<IN,OUT>
Rich variant of thePatternFlatSelectFunction. As aRichFunction, it gives access to theRuntimeContextand provides setup and teardown methods:RichFunction.open(OpenContext)andRichFunction.close().- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RichPatternFlatSelectFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidflatSelect(Map<String,List<IN>> pattern, org.apache.flink.util.Collector<OUT> out)Generates zero or more resulting elements given a map of detected pattern events.
-
-
-
Method Detail
-
flatSelect
public abstract void flatSelect(Map<String,List<IN>> pattern, org.apache.flink.util.Collector<OUT> out) throws Exception
Description copied from interface:PatternFlatSelectFunctionGenerates zero or more resulting elements given a map of detected pattern events. The events are identified by their specified names.- Specified by:
flatSelectin interfacePatternFlatSelectFunction<IN,OUT>- Parameters:
pattern- Map containing the found pattern. Events are identified by their names.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.
-
-