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>
Deprecated.
Fetch data from Kafka for Kafka Shuffle.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.An element in a KafkaShuffle.static classDeprecated.Deserializer for KafkaShuffleElement.static classDeprecated.One value with Type T in a KafkaShuffle.static classDeprecated.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
ConstructorsConstructorDescriptionKafkaShuffleFetcher(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
Modifier and TypeMethodDescriptionprotected StringDeprecated.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, runFetchLoopMethods inherited from class org.apache.flink.streaming.connectors.kafka.internals.AbstractFetcher
addDiscoveredPartitions, commitInternalOffsetsToKafka, emitRecordsWithTimestamps, snapshotCurrentState, subscribedPartitionStates
-
Constructor Details
-
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 ExceptionDeprecated.- Throws:
Exception
-
-
Method Details
-
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, throws Exceptionorg.apache.kafka.common.TopicPartition> partition) Deprecated.- Overrides:
partitionConsumerRecordsHandlerin classKafkaFetcher<T>- Throws:
Exception
-