| 程序包 | 说明 |
|---|---|
| org.apache.flink.streaming.connectors.kafka.internals |
| 限定符和类型 | 类和说明 |
|---|---|
class |
KafkaTopicPartitionStateWithWatermarkGenerator<T,KPH>
A special version of the per-kafka-partition-state that additionally holds a
TimestampAssigner, WatermarkGenerator, an immediate WatermarkOutput, and a
deferred WatermarkOutput for this partition. |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ClosableBlockingQueue<KafkaTopicPartitionState<T,KPH>> |
AbstractFetcher.unassignedPartitionsQueue
Queue of partitions that are not yet assigned to any Kafka clients for consuming.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<KafkaTopicPartitionState<T,KPH>> |
AbstractFetcher.subscribedPartitionStates()
Gets all partitions (with partition state) that this fetcher is subscribed to.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
AbstractFetcher.emitRecordsWithTimestamps(Queue<T> records,
KafkaTopicPartitionState<T,KPH> partitionState,
long offset,
long kafkaEventTimestamp)
Emits a record attaching a timestamp to it.
|
protected void |
KafkaShuffleFetcher.partitionConsumerRecordsHandler(List<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> partitionRecords,
KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition> partition) |
protected void |
KafkaFetcher.partitionConsumerRecordsHandler(List<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> partitionRecords,
KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition> partition) |
| 构造器和说明 |
|---|
KafkaConsumerThread(org.slf4j.Logger log,
Handover handover,
Properties kafkaProperties,
ClosableBlockingQueue<KafkaTopicPartitionState<T,org.apache.kafka.common.TopicPartition>> unassignedPartitionsQueue,
String threadName,
long pollTimeout,
boolean useMetrics,
org.apache.flink.metrics.MetricGroup consumerMetricGroup,
org.apache.flink.metrics.MetricGroup subtaskMetricGroup) |
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.