T- Type of the element to filter
@Internal public class RichOrCondition<T> extends RichCompositeIterativeCondition<T>
conditionwhich combines two conditions with a logical
trueif at least one is
|Constructor and Description|
|Modifier and Type||Method and Description|
The filter function that evaluates the predicate.
close, getNestedConditions, open, setRuntimeContext
getIterationRuntimeContext, getRuntimeContext, open
public boolean filter(T value, IterativeCondition.Context<T> ctx) throws Exception
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.
value- The value to be tested.
IterativeCondition.Contextused for the evaluation of the function and provides access to the already accepted events in the pattern (see
truefor values that should be retained,
falsefor values to be filtered out.
Exception- This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.
public IterativeCondition<T> getLeft()
conditionscombined in this condition.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.