Class NotCondition<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 NotCondition<T>
    extends IterativeCondition<T>
    Deprecated.
    Please use RichNotCondition instead. This class exists just for backwards compatibility and will be removed in FLINK-10113.
    A condition which negates the condition it wraps and returns true if the original condition returns false.
    See Also:
    Serialized Form
    • Method Detail

      • filter

        public boolean filter​(T value,
                              IterativeCondition.Context<T> ctx)
                       throws Exception
        Deprecated.
        Description copied from class: IterativeCondition
        The 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:
        filter in class IterativeCondition<T>
        Parameters:
        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)).
        Returns:
        true for values that should be retained, false for 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.