T
- Type of the element to filterRichOrCondition
instead. This class exists just for backwards
compatibility and will be removed in FLINK-10113.@Internal @Deprecated public class OrCondition<T> extends IterativeCondition<T>
condition
which combines two conditions with a logical OR
and returns true
if at least one is true
.IterativeCondition.Context<T>
Constructor and Description |
---|
OrCondition(IterativeCondition<T> left,
IterativeCondition<T> right)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
filter(T value,
IterativeCondition.Context<T> ctx)
Deprecated.
The filter function that evaluates the predicate.
|
IterativeCondition<T> |
getLeft()
Deprecated.
|
IterativeCondition<T> |
getRight()
Deprecated.
|
public OrCondition(IterativeCondition<T> left, IterativeCondition<T> right)
public boolean filter(T value, IterativeCondition.Context<T> ctx) throws Exception
IterativeCondition
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.
filter
in class IterativeCondition<T>
value
- The value to be tested.ctx
- The IterativeCondition.Context
used for the evaluation of the function and provides access to
the already accepted events in the pattern (see IterativeCondition.Context.getEventsForPattern(String)
).true
for values that should be retained, false
for 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()
conditions
combined in this condition.public IterativeCondition<T> getRight()
conditions
combined in this condition.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.