Package io.github.kaststream.api
Interface Filter
-
- All Superinterfaces:
Serializable
public interface Filter extends Serializable
Deprecated.This class will be remove in next versionUse
Filter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclose()Deprecated.Tear-down method for the user code.booleanfilter(org.apache.flink.types.Row row)Deprecated.The filter function that evaluates the predicate.org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>getProducedType(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)Deprecated.Declare the data type information of the data produced by your function.default voidopen(org.apache.flink.configuration.Configuration configuration, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)Deprecated.Initialization method for the function.
-
-
-
Method Detail
-
filter
boolean filter(org.apache.flink.types.Row row) throws ExceptionDeprecated.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.
- Parameters:
row- The value to be filtered.- 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.
-
getProducedType
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getProducedType(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Deprecated.Declare the data type information of the data produced by your function.- Parameters:
typeInfo- the input row type information- Returns:
- the produced data typeInfo
-
open
default void open(org.apache.flink.configuration.Configuration configuration, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo) throws ExceptionDeprecated.Initialization method for the function.- Parameters:
configuration- The configuration containing the parameters attached to the contracttypeInfo- the input row type information- Throws:
Exception- The function may throw exceptions which cause the streaming program to fail and go into recovery.
-
close
default void close() throws ExceptionDeprecated.Tear-down method for the user code. It is called after the last call to the main working methods. For functions that are part of an iteration, this method will be invoked after each iteration superstep.This method can be used for clean up work.
- Throws:
Exception- The function may throw exceptions which cause the streaming program to fail and go into recovery.
-
-