Class KafkaPartitionSplitReaderWrapper
java.lang.Object
org.apache.flink.connector.kafka.source.reader.KafkaPartitionSplitReader
org.apache.flink.connector.kafka.dynamic.source.reader.KafkaPartitionSplitReaderWrapper
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.connector.base.source.reader.splitreader.SplitReader<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>, KafkaPartitionSplit>
@Internal
public class KafkaPartitionSplitReaderWrapper
extends KafkaPartitionSplitReader
implements AutoCloseable
This extends to Kafka Partition Split Reader to wrap split ids with the cluster name.
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaPartitionSplitReaderWrapper(Properties props, org.apache.flink.api.connector.source.SourceReaderContext context, KafkaSourceReaderMetrics kafkaSourceReaderMetrics, String kafkaClusterId) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.connector.base.source.reader.RecordsWithSplitIds<org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]>> fetch()Methods inherited from class org.apache.flink.connector.kafka.source.reader.KafkaPartitionSplitReader
close, handleSplitsChanges, notifyCheckpointComplete, pauseOrResumeSplits, wakeUpMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Constructor Details
-
KafkaPartitionSplitReaderWrapper
public KafkaPartitionSplitReaderWrapper(Properties props, org.apache.flink.api.connector.source.SourceReaderContext context, KafkaSourceReaderMetrics kafkaSourceReaderMetrics, String kafkaClusterId)
-
-
Method Details
-
fetch
public org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>> fetch() throws IOException- Specified by:
fetchin interfaceorg.apache.flink.connector.base.source.reader.splitreader.SplitReader<org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]>, KafkaPartitionSplit> - Overrides:
fetchin classKafkaPartitionSplitReader- Throws:
IOException
-