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 the
PatternFlatSelectFunction. As a RichFunction, it gives access
to the RuntimeContext and provides setup and
teardown methods: RichFunction.open(OpenContext) and RichFunction.close().- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
-
Constructor Details
-
RichPatternFlatSelectFunction
public RichPatternFlatSelectFunction()
-
-
Method Details
-
flatSelect
public abstract void flatSelect(Map<String, List<IN>> pattern, org.apache.flink.util.Collector<OUT> out) throws ExceptionDescription 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.
-