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
,Function
,RichFunction
,PatternSelectFunction<IN,OUT>
public abstract class RichPatternSelectFunction<IN,OUT> extends AbstractRichFunction implements PatternSelectFunction<IN,OUT>
Rich variant of thePatternSelectFunction
. 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 RichPatternSelectFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract OUT
select(Map<String,List<IN>> pattern)
Generates a result from the given map of events.-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
-
-
-
-
Method Detail
-
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 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.
-
-