Uses of Interface
org.apache.flink.datastream.api.common.Collector
Packages that use Collector
Package
Description
-
Uses of Collector in org.apache.flink.datastream.api.extension.eventtime.function
Methods in org.apache.flink.datastream.api.extension.eventtime.function with parameters of type CollectorModifier and TypeMethodDescriptiondefault voidOneInputEventTimeStreamProcessFunction.onEventTimer(long timestamp, Collector<OUT> output, PartitionedContext<OUT> ctx) Invoked when an event-time timer fires.default voidTwoInputBroadcastEventTimeStreamProcessFunction.onEventTimer(long timestamp, Collector<OUT> output, PartitionedContext<OUT> ctx) Invoked when an event-time timer fires.default voidTwoInputNonBroadcastEventTimeStreamProcessFunction.onEventTimer(long timestamp, Collector<OUT> output, PartitionedContext<OUT> ctx) Invoked when an event-time timer fires.default voidTwoOutputEventTimeStreamProcessFunction.onEventTimer(long timestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx) Invoked when an event-time timer fires.default voidOneInputEventTimeStreamProcessFunction.onEventTimeWatermark(long watermarkTimestamp, Collector<OUT> output, NonPartitionedContext<OUT> ctx) The#onEventTimeWatermarkmethod signifies that the EventTimeProcessFunction has received an EventTimeWatermark.default voidTwoInputBroadcastEventTimeStreamProcessFunction.onEventTimeWatermark(long watermarkTimestamp, Collector<OUT> output, NonPartitionedContext<OUT> ctx) The#onEventTimeWatermarkmethod signifies that the EventTimeProcessFunction has received an EventTimeWatermark.default voidTwoInputNonBroadcastEventTimeStreamProcessFunction.onEventTimeWatermark(long watermarkTimestamp, Collector<OUT> output, NonPartitionedContext<OUT> ctx) The#onEventTimeWatermarkmethod signifies that the EventTimeProcessFunction has received an EventTimeWatermark.default voidTwoOutputEventTimeStreamProcessFunction.onEventTimeWatermark(long watermarkTimestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputNonPartitionedContext<OUT1, OUT2> ctx) The#onEventTimeWatermarkmethod signifies that the EventTimeProcessFunction has received an EventTimeWatermark. -
Uses of Collector in org.apache.flink.datastream.api.extension.join
Methods in org.apache.flink.datastream.api.extension.join with parameters of type CollectorModifier and TypeMethodDescriptionvoidJoinFunction.processRecord(IN1 leftRecord, IN2 rightRecord, Collector<OUT> output, RuntimeContext ctx) -
Uses of Collector in org.apache.flink.datastream.api.extension.window.function
Methods in org.apache.flink.datastream.api.extension.window.function with parameters of type CollectorModifier and TypeMethodDescriptiondefault voidOneInputWindowStreamProcessFunction.onClear(Collector<OUT> output, PartitionedContext<OUT> ctx, OneInputWindowContext<IN> windowContext) Callback when a window is about to be cleaned up.default voidTwoInputNonBroadcastWindowStreamProcessFunction.onClear(Collector<OUT> output, PartitionedContext<OUT> ctx, TwoInputWindowContext<IN1, IN2> windowContext) Callback when a window is about to be cleaned up.default voidTwoOutputWindowStreamProcessFunction.onClear(Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx, OneInputWindowContext<IN> windowContext) Callback when a window is about to be cleaned up.default voidOneInputWindowStreamProcessFunction.onLateRecord(IN record, Collector<OUT> output, PartitionedContext<OUT> ctx) This method will be invoked when a record is received after the window has been cleaned.default voidTwoOutputWindowStreamProcessFunction.onLateRecord(IN record, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx) This method will be invoked when a record is received after the window has been cleaned.default voidTwoInputNonBroadcastWindowStreamProcessFunction.onLateRecord1(IN1 record, Collector<OUT> output, PartitionedContext<OUT> ctx) This method will be invoked when a record is received from input1 after the window has been cleaned.default voidTwoInputNonBroadcastWindowStreamProcessFunction.onLateRecord2(IN2 record, Collector<OUT> output, PartitionedContext<OUT> ctx) This method will be invoked when a record is received from input2 after the window has been cleaned.default voidOneInputWindowStreamProcessFunction.onRecord(IN record, Collector<OUT> output, PartitionedContext<OUT> ctx, OneInputWindowContext<IN> windowContext) This method will be invoked when a record is received.default voidTwoOutputWindowStreamProcessFunction.onRecord(IN record, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx, OneInputWindowContext<IN> windowContext) This method will be invoked when a record is received.default voidTwoInputNonBroadcastWindowStreamProcessFunction.onRecord1(IN1 record, Collector<OUT> output, PartitionedContext<OUT> ctx, TwoInputWindowContext<IN1, IN2> windowContext) This method will be invoked when a record is received from input1.default voidTwoInputNonBroadcastWindowStreamProcessFunction.onRecord2(IN2 record, Collector<OUT> output, PartitionedContext<OUT> ctx, TwoInputWindowContext<IN1, IN2> windowContext) This method will be invoked when a record is received from input2.voidOneInputWindowStreamProcessFunction.onTrigger(Collector<OUT> output, PartitionedContext<OUT> ctx, OneInputWindowContext<IN> windowContext) This method will be invoked when the Window is triggered, you can obtain all the input records in the Window byOneInputWindowContext.getAllRecords().voidTwoInputNonBroadcastWindowStreamProcessFunction.onTrigger(Collector<OUT> output, PartitionedContext<OUT> ctx, TwoInputWindowContext<IN1, IN2> windowContext) This method will be invoked when the Window is triggered, you can obtain all the input records in the Window byTwoInputWindowContext.getAllRecords1()andTwoInputWindowContext.getAllRecords2().voidTwoOutputWindowStreamProcessFunction.onTrigger(Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx, OneInputWindowContext<IN> windowContext) This method will be invoked when the Window is triggered, you can obtain all the input records in the Window byOneInputWindowContext.getAllRecords(). -
Uses of Collector in org.apache.flink.datastream.api.function
Methods in org.apache.flink.datastream.api.function with parameters of type CollectorModifier and TypeMethodDescriptionvoidApplyPartitionFunction.apply(Collector<OUT> collector, PartitionedContext<OUT> ctx) The actual method to be applied to each partition.voidTwoOutputApplyPartitionFunction.apply(Collector<OUT1> firstOutput, Collector<OUT2> secondOutput, TwoOutputPartitionedContext<OUT1, OUT2> ctx) The actual method to be applied to each partition.default voidOneInputStreamProcessFunction.onProcessingTimer(long timestamp, Collector<OUT> output, PartitionedContext<OUT> ctx) Callback for processing timer.default voidTwoInputBroadcastStreamProcessFunction.onProcessingTimer(long timestamp, Collector<OUT> output, PartitionedContext<OUT> ctx) Callback for processing timer.default voidTwoInputNonBroadcastStreamProcessFunction.onProcessingTimer(long timestamp, Collector<OUT> output, PartitionedContext<OUT> ctx) Callback for processing timer.default voidTwoOutputStreamProcessFunction.onProcessingTimer(long timestamp, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx) Callback for processing timer.default org.apache.flink.api.common.watermark.WatermarkHandlingResultOneInputStreamProcessFunction.onWatermark(org.apache.flink.api.common.watermark.Watermark watermark, Collector<OUT> output, NonPartitionedContext<OUT> ctx) Callback function when receive watermark.default org.apache.flink.api.common.watermark.WatermarkHandlingResultTwoOutputStreamProcessFunction.onWatermark(org.apache.flink.api.common.watermark.Watermark watermark, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputNonPartitionedContext<OUT1, OUT2> ctx) Callback function when receive the watermark from the input.default org.apache.flink.api.common.watermark.WatermarkHandlingResultTwoInputBroadcastStreamProcessFunction.onWatermarkFromBroadcastInput(org.apache.flink.api.common.watermark.Watermark watermark, Collector<OUT> output, NonPartitionedContext<OUT> ctx) Callback function when receive the watermark from broadcast input.default org.apache.flink.api.common.watermark.WatermarkHandlingResultTwoInputNonBroadcastStreamProcessFunction.onWatermarkFromFirstInput(org.apache.flink.api.common.watermark.Watermark watermark, Collector<OUT> output, NonPartitionedContext<OUT> ctx) Callback function when receive the watermark from the first input.default org.apache.flink.api.common.watermark.WatermarkHandlingResultTwoInputBroadcastStreamProcessFunction.onWatermarkFromNonBroadcastInput(org.apache.flink.api.common.watermark.Watermark watermark, Collector<OUT> output, NonPartitionedContext<OUT> ctx) Callback function when receive the watermark from non-broadcast input.default org.apache.flink.api.common.watermark.WatermarkHandlingResultTwoInputNonBroadcastStreamProcessFunction.onWatermarkFromSecondInput(org.apache.flink.api.common.watermark.Watermark watermark, Collector<OUT> output, NonPartitionedContext<OUT> ctx) Callback function when receive the watermark from the second input.voidOneInputStreamProcessFunction.processRecord(IN record, Collector<OUT> output, PartitionedContext<OUT> ctx) Process record and emit data throughCollector.voidTwoOutputStreamProcessFunction.processRecord(IN record, Collector<OUT1> output1, Collector<OUT2> output2, TwoOutputPartitionedContext<OUT1, OUT2> ctx) Process and emit record to the first/second output throughCollectors.voidTwoInputNonBroadcastStreamProcessFunction.processRecordFromFirstInput(IN1 record, Collector<OUT> output, PartitionedContext<OUT> ctx) Process record from the first input and emit data throughCollector.voidTwoInputBroadcastStreamProcessFunction.processRecordFromNonBroadcastInput(IN1 record, Collector<OUT> output, PartitionedContext<OUT> ctx) Process record from non-broadcast input and emit data throughCollector.voidTwoInputNonBroadcastStreamProcessFunction.processRecordFromSecondInput(IN2 record, Collector<OUT> output, PartitionedContext<OUT> ctx) Process record from the second input and emit data throughCollector.