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 the
PatternSelectFunction. 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
-
RichPatternSelectFunction
public RichPatternSelectFunction()
-
-
Method Details
-
select
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.
-