Class DropUpdateBeforeFunction
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.misc.DropUpdateBeforeFunction
-
- All Implemented Interfaces:
Serializable
,FilterFunction<RowData>
,Function
public class DropUpdateBeforeFunction extends Object implements FilterFunction<RowData>
A function drops only rows withRowKind.UPDATE_BEFORE
changelog kind. This is usually used as an optimization for the downstream operators that doesn't need theRowKind.UPDATE_BEFORE
messages, but the upstream operator can't drop it by itself.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DropUpdateBeforeFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filter(RowData value)
The filter function that evaluates the predicate.
-
-
-
Method Detail
-
filter
public boolean filter(RowData value)
Description copied from interface:FilterFunction
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 interfaceFilterFunction<RowData>
- Parameters:
value
- The value to be filtered.- Returns:
- True for values that should be retained, false for values to be filtered out.
-
-