IN- Type of the input elements
OUT- Type of the output element
public interface PatternTimeoutFunction<IN,OUT> extends Function, Serializable
Pattern. The timeout method returns exactly one result. If you want to return more than one result, then you have to implement a
PatternStream<IN> pattern = ...; DataStream<OUT> result = pattern.select(..., new MyPatternTimeoutFunction());
pattern- Map containing the found partial pattern. Events are identified by their names
timeoutTimestamp- Timestamp of the timeout
Exception- This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.