Package io.github.kaststream.api
Interface Processor
-
- All Superinterfaces:
Serializable
public interface Processor extends Serializable
Deprecated.This class will be remove in next versionUse
ProcessorThe process function (engine low level operator)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.Tear-down method for the user code.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 Map<String,org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>>getSidesOutProducedType(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)Deprecated.Declare the data type information of the sides out data produced by your function.voidopen(org.apache.flink.configuration.Configuration configuration, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String,org.apache.flink.util.OutputTag<org.apache.flink.types.Row>> sidesOutputTag)Deprecated.Initialization method for the function.voidprocessElement(org.apache.flink.types.Row row, org.apache.flink.streaming.api.functions.ProcessFunction.Context context, org.apache.flink.util.Collector<org.apache.flink.types.Row> collector)Deprecated.
-
-
-
Method Detail
-
processElement
void processElement(org.apache.flink.types.Row row, org.apache.flink.streaming.api.functions.ProcessFunction.Context context, org.apache.flink.util.Collector<org.apache.flink.types.Row> collector) throws ExceptionDeprecated.- Parameters:
row- in valuecontext- the ProcessFunction.Context to eventually emit side-output streamscollector- the out row collector- Throws:
Exception- in case of problem. This will stop your stream.
-
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 output row type information
-
getSidesOutProducedType
default Map<String,org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row>> getSidesOutProducedType(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Deprecated.Declare the data type information of the sides out data produced by your function.- Returns:
- the sides output type information
-
open
void open(org.apache.flink.configuration.Configuration configuration, org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String,org.apache.flink.util.OutputTag<org.apache.flink.types.Row>> sidesOutputTag) throws ExceptionDeprecated.Initialization method for the function.- Parameters:
configuration- The configuration containing the parameters attached to the contracttypeInfo- the input row type informationruntimeContext- Context that contains information about the UDF's runtimesidesOutputTag- Side output typeinfo and tag dict if any- Throws:
Exception- The function may throw exceptions which cause the streaming program to fail and go into recovery.
-
close
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.
-
-