Class OrCondition<T>
- java.lang.Object
-
- org.apache.flink.cep.pattern.conditions.IterativeCondition<T>
-
- org.apache.flink.cep.pattern.conditions.OrCondition<T>
-
- Type Parameters:
T- Type of the element to filter
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function
@Internal @Deprecated public class OrCondition<T> extends IterativeCondition<T>
Deprecated.Please useRichOrConditioninstead. This class exists just for backwards compatibility and will be removed in FLINK-10113.Aconditionwhich combines two conditions with a logicalORand returnstrueif at least one istrue.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.cep.pattern.conditions.IterativeCondition
IterativeCondition.Context<T>
-
-
Constructor Summary
Constructors Constructor Description OrCondition(IterativeCondition<T> left, IterativeCondition<T> right)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanfilter(T value, IterativeCondition.Context<T> ctx)Deprecated.The filter function that evaluates the predicate.IterativeCondition<T>getLeft()Deprecated.IterativeCondition<T>getRight()Deprecated.
-
-
-
Constructor Detail
-
OrCondition
public OrCondition(IterativeCondition<T> left, IterativeCondition<T> right)
Deprecated.
-
-
Method Detail
-
filter
public boolean filter(T value, IterativeCondition.Context<T> ctx) throws Exception
Deprecated.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
public IterativeCondition<T> getLeft()
Deprecated.- Returns:
- One of the
conditionscombined in this condition.
-
getRight
public IterativeCondition<T> getRight()
Deprecated.- Returns:
- One of the
conditionscombined in this condition.
-
-