@Internal public class FlinkKafkaShuffleConsumer<T> extends FlinkKafkaConsumer<T>
DEFAULT_POLL_TIMEOUT, KEY_POLL_TIMEOUT, pollTimeout, propertiesdeserializer, KEY_DISABLE_METRICS, KEY_PARTITION_DISCOVERY_INTERVAL_MILLIS, LOG, MAX_NUM_PENDING_CHECKPOINTS, PARTITION_DISCOVERY_DISABLED| 限定符和类型 | 方法和说明 |
|---|---|
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)
Creates the fetcher that connect to the Kafka brokers, pulls data, deserialized the data, and
emits it into the data streams.
|
createPartitionDiscoverer, fetchOffsetsWithTimestamp, getIsAutoCommitEnabledadjustAutoCommitConfig, assignTimestampsAndWatermarks, assignTimestampsAndWatermarks, assignTimestampsAndWatermarks, cancel, close, disableFilterRestoredPartitionsWithSubscribedTopics, getEnableCommitOnCheckpoints, getProducedType, initializeState, notifyCheckpointAborted, notifyCheckpointComplete, open, run, setCommitOffsetsOnCheckpoints, setStartFromEarliest, setStartFromGroupOffsets, setStartFromLatest, setStartFromSpecificOffsets, setStartFromTimestamp, snapshotStateprotected 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
FlinkKafkaConsumerBasecreateFetcher 在类中 FlinkKafkaConsumer<T>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.Exception - The method should forward exceptionsCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.