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
,Function
,RichFunction
,PatternFlatSelectFunction<IN,OUT>
public abstract class RichPatternFlatSelectFunction<IN,OUT> extends AbstractRichFunction implements PatternFlatSelectFunction<IN,OUT>
Rich variant of thePatternFlatSelectFunction
. As aRichFunction
, it gives access to theRuntimeContext
and 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 void
flatSelect(Map<String,List<IN>> pattern, Collector<OUT> out)
Generates zero or more resulting elements given a map of detected pattern events.-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
-
-
-
-
Method Detail
-
flatSelect
public abstract void flatSelect(Map<String,List<IN>> pattern, Collector<OUT> out) throws Exception
Description copied from interface:PatternFlatSelectFunction
Generates zero or more resulting elements given a map of detected pattern events. The events are identified by their specified names.- Specified by:
flatSelect
in 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.
-
-