Class RichOrCondition<T>
java.lang.Object
org.apache.flink.cep.pattern.conditions.IterativeCondition<T>
org.apache.flink.cep.pattern.conditions.RichIterativeCondition<T>
org.apache.flink.cep.pattern.conditions.RichCompositeIterativeCondition<T>
org.apache.flink.cep.pattern.conditions.RichOrCondition<T>
- Type Parameters:
T- Type of the element to filter
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction
A
condition which combines two conditions with a logical
OR and returns true if at least one is true.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.cep.pattern.conditions.IterativeCondition
IterativeCondition.Context<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.cep.pattern.conditions.RichCompositeIterativeCondition
close, getNestedConditions, open, setRuntimeContextMethods inherited from class org.apache.flink.cep.pattern.conditions.RichIterativeCondition
getIterationRuntimeContext, getRuntimeContext
-
Constructor Details
-
RichOrCondition
-
-
Method Details
-
filter
Description copied from class:IterativeConditionThe filter function that evaluates the predicate.IMPORTANT: The system assumes that the function does not modify the elements on which the predicate is applied. Violating this assumption can lead to incorrect results.
- Specified by:
filterin classIterativeCondition<T>- Parameters:
value- The value to be tested.ctx- TheIterativeCondition.Contextused for the evaluation of the function and provides access to the already accepted events in the pattern (seeIterativeCondition.Context.getEventsForPattern(String)).- Returns:
truefor values that should be retained,falsefor values to be filtered out.- Throws:
Exception- This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.
-
getLeft
- Returns:
- One of the
conditionscombined in this condition.
-
getRight
- Returns:
- One of the
conditionscombined in this condition.
-