Class KafkaShuffleFetcher<T>
- java.lang.Object
-
- org.apache.flink.streaming.connectors.kafka.internals.AbstractFetcher<T,org.apache.kafka.common.TopicPartition>
-
- org.apache.flink.streaming.connectors.kafka.internals.KafkaFetcher<T>
-
- org.apache.flink.streaming.connectors.kafka.internals.KafkaShuffleFetcher<T>
-
@Internal @Deprecated public class KafkaShuffleFetcher<T> extends KafkaFetcher<T>
Deprecated.Fetch data from Kafka for Kafka Shuffle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKafkaShuffleFetcher.KafkaShuffleElementDeprecated.An element in a KafkaShuffle.static classKafkaShuffleFetcher.KafkaShuffleElementDeserializer<T>Deprecated.Deserializer for KafkaShuffleElement.static classKafkaShuffleFetcher.KafkaShuffleRecord<T>Deprecated.One value with Type T in a KafkaShuffle.static classKafkaShuffleFetcher.KafkaShuffleWatermarkDeprecated.A watermark element in a KafkaShuffle.
-
Field Summary
-
Fields inherited from class org.apache.flink.streaming.connectors.kafka.internals.AbstractFetcher
checkpointLock, sourceContext, unassignedPartitionsQueue, watermarkOutput
-
-
Constructor Summary
Constructors Constructor Description KafkaShuffleFetcher(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.runtime.tasks.ProcessingTimeService processingTimeProvider, long autoWatermarkInterval, ClassLoader userCodeClassLoader, String taskNameWithSubtasks, KafkaDeserializationSchema<T> deserializer, Properties kafkaProperties, long pollTimeout, org.apache.flink.metrics.MetricGroup subtaskMetricGroup, org.apache.flink.metrics.MetricGroup consumerMetricGroup, boolean useMetrics, org.apache.flink.api.common.typeutils.TypeSerializer<T> typeSerializer, int producerParallelism)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringgetFetcherName()Deprecated.Gets the name of this fetcher, for thread naming and logging purposes.protected voidpartitionConsumerRecordsHandler(List<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> partitionRecords, KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition> partition)Deprecated.-
Methods inherited from class org.apache.flink.streaming.connectors.kafka.internals.KafkaFetcher
cancel, createKafkaPartitionHandle, doCommitInternalOffsetsToKafka, runFetchLoop
-
Methods inherited from class org.apache.flink.streaming.connectors.kafka.internals.AbstractFetcher
addDiscoveredPartitions, commitInternalOffsetsToKafka, emitRecordsWithTimestamps, snapshotCurrentState, subscribedPartitionStates
-
-
-
-
Constructor Detail
-
KafkaShuffleFetcher
public KafkaShuffleFetcher(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.runtime.tasks.ProcessingTimeService processingTimeProvider, long autoWatermarkInterval, ClassLoader userCodeClassLoader, String taskNameWithSubtasks, KafkaDeserializationSchema<T> deserializer, Properties kafkaProperties, long pollTimeout, org.apache.flink.metrics.MetricGroup subtaskMetricGroup, org.apache.flink.metrics.MetricGroup consumerMetricGroup, boolean useMetrics, org.apache.flink.api.common.typeutils.TypeSerializer<T> typeSerializer, int producerParallelism) throws Exception
Deprecated.- Throws:
Exception
-
-
Method Detail
-
getFetcherName
protected String getFetcherName()
Deprecated.Description copied from class:KafkaFetcherGets the name of this fetcher, for thread naming and logging purposes.- Overrides:
getFetcherNamein classKafkaFetcher<T>
-
partitionConsumerRecordsHandler
protected void partitionConsumerRecordsHandler(List<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> partitionRecords, KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition> partition) throws Exception
Deprecated.- Overrides:
partitionConsumerRecordsHandlerin classKafkaFetcher<T>- Throws:
Exception
-
-