@Internal public class KafkaShuffleFetcher<T> extends KafkaFetcher<T>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
KafkaShuffleFetcher.KafkaShuffleElement
An element in a KafkaShuffle.
|
static class |
KafkaShuffleFetcher.KafkaShuffleElementDeserializer<T>
Deserializer for KafkaShuffleElement.
|
static class |
KafkaShuffleFetcher.KafkaShuffleRecord<T>
One value with Type T in a KafkaShuffle.
|
static class |
KafkaShuffleFetcher.KafkaShuffleWatermark
A watermark element in a KafkaShuffle.
|
checkpointLock, sourceContext, unassignedPartitionsQueue, watermarkOutput| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getFetcherName()
Gets the name of this fetcher, for thread naming and logging purposes.
|
protected void |
partitionConsumerRecordsHandler(List<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> partitionRecords,
KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition> partition) |
cancel, createKafkaPartitionHandle, doCommitInternalOffsetsToKafka, runFetchLoopaddDiscoveredPartitions, commitInternalOffsetsToKafka, emitRecordsWithTimestamps, snapshotCurrentState, subscribedPartitionStatespublic 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
Exceptionprotected String getFetcherName()
KafkaFetchergetFetcherName 在类中 KafkaFetcher<T>protected void partitionConsumerRecordsHandler(List<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> partitionRecords, KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition> partition) throws Exception
partitionConsumerRecordsHandler 在类中 KafkaFetcher<T>ExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.