Class FlinkKafkaShuffleConsumer<T>

  • 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.api.java.typeutils.ResultTypeQueryable<T>, org.apache.flink.streaming.api.checkpoint.CheckpointedFunction, org.apache.flink.streaming.api.functions.source.ParallelSourceFunction<T>, org.apache.flink.streaming.api.functions.source.SourceFunction<T>

    @Internal
    @Deprecated
    public class FlinkKafkaShuffleConsumer<T>
    extends FlinkKafkaConsumer<T>
    Deprecated.
    Flink Kafka Shuffle Consumer Function.
    See Also:
    Serialized Form
    • Method Detail

      • createFetcher

        protected AbstractFetcher<T,​?> createFetcher​(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> sourceContext,
                                                           Map<KafkaTopicPartition,​Long> assignedPartitionsWithInitialOffsets,
                                                           org.apache.flink.util.SerializedValue<org.apache.flink.api.common.eventtime.WatermarkStrategy<T>> watermarkStrategy,
                                                           org.apache.flink.streaming.api.operators.StreamingRuntimeContext runtimeContext,
                                                           OffsetCommitMode offsetCommitMode,
                                                           org.apache.flink.metrics.MetricGroup consumerMetricGroup,
                                                           boolean useMetrics)
                                                    throws Exception
        Deprecated.
        Description copied from class: FlinkKafkaConsumerBase
        Creates the fetcher that connect to the Kafka brokers, pulls data, deserialized the data, and emits it into the data streams.
        Overrides:
        createFetcher in class FlinkKafkaConsumer<T>
        Parameters:
        sourceContext - The source context to emit data to.
        assignedPartitionsWithInitialOffsets - The set of partitions that this subtask should handle, with their start offsets.
        watermarkStrategy - Optional, a serialized WatermarkStrategy.
        runtimeContext - The task's runtime context.
        Returns:
        The instantiated fetcher
        Throws:
        Exception - The method should forward exceptions