Package org.apache.flink.cep
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 elementsOUT- 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 thePatternSelectFunction. 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 RichPatternSelectFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract OUTselect(Map<String,List<IN>> pattern)Generates a result from the given map of events.
-
-
-
Method Detail
-
select
public abstract OUT select(Map<String,List<IN>> pattern) throws Exception
Description copied from interface:PatternSelectFunctionGenerates a result from the given map of events. The events are identified by their names. Only one resulting element can be generated.- Specified by:
selectin interfacePatternSelectFunction<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.
-
-