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
Constructors Constructor Description KafkaPartitionSplitReaderWrapper(Properties props, org.apache.flink.api.connector.source.SourceReaderContext context, KafkaSourceReaderMetrics kafkaSourceReaderMetrics, String kafkaClusterId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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, wakeUp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Constructor Detail
-
KafkaPartitionSplitReaderWrapper
public KafkaPartitionSplitReaderWrapper(Properties props, org.apache.flink.api.connector.source.SourceReaderContext context, KafkaSourceReaderMetrics kafkaSourceReaderMetrics, String kafkaClusterId)
-
-
Method Detail
-
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
-
-