IN - Type of the input elementsOUT - Type of the output elementpublic interface PatternSelectFunction<IN,OUT> extends org.apache.flink.api.common.functions.Function, Serializable
Pattern. The select method returns exactly
one result. If you want to return more than one result, then you have to implement a PatternFlatSelectFunction.
PatternStream<IN> pattern = ...;
DataStream<OUT> result = pattern.select(new MyPatternSelectFunction());
OUT select(Map<String,List<IN>> pattern) throws Exception
pattern - Map containing the found pattern. Events are identified by their namesException - This method may throw exceptions. Throwing an exception will cause the
operation to fail and may trigger recovery.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.