Class FlinkKafkaShuffleProducer<IN,​KEY>

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.api.common.state.CheckpointListener, org.apache.flink.streaming.api.checkpoint.CheckpointedFunction, org.apache.flink.streaming.api.functions.sink.SinkFunction<IN>

    @Internal
    @Deprecated
    public class FlinkKafkaShuffleProducer<IN,​KEY>
    extends FlinkKafkaProducer<IN>
    Deprecated.
    Flink Kafka Shuffle Producer Function. It is different from FlinkKafkaProducer in the way handling elements and watermarks
    See Also:
    Serialized Form
    • Method Detail

      • invoke

        public void invoke​(FlinkKafkaProducer.KafkaTransactionState transaction,
                           IN next,
                           org.apache.flink.streaming.api.functions.sink.SinkFunction.Context context)
                    throws FlinkKafkaException
        Deprecated.
        This is the function invoked to handle each element.
        Overrides:
        invoke in class FlinkKafkaProducer<IN>
        Parameters:
        transaction - Transaction state; elements are written to Kafka in transactions to guarantee different level of data consistency
        next - Element to handle
        context - Context needed to handle the element
        Throws:
        FlinkKafkaException - for kafka error
      • invoke

        public void invoke​(org.apache.flink.streaming.api.watermark.Watermark watermark)
                    throws FlinkKafkaException
        Deprecated.
        This is the function invoked to handle each watermark.
        Parameters:
        watermark - Watermark to handle
        Throws:
        FlinkKafkaException - For kafka error