Package org.apache.pulsar.io.kafka
Class KafkaStringSource
- All Implemented Interfaces:
AutoCloseable,org.apache.pulsar.io.core.Source<String>
Simple Kafka Source that just transfers the value part of the kafka records as Strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pulsar.io.kafka.KafkaAbstractSource
KafkaAbstractSource.KafkaRecord<V>, KafkaAbstractSource.KeyValueKafkaRecord<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildRecord(org.apache.kafka.clients.consumer.ConsumerRecord<Object, Object> consumerRecord) Methods inherited from class org.apache.pulsar.io.kafka.KafkaAbstractSource
beforeCreateConsumer, close, open, startMethods inherited from class org.apache.pulsar.io.kafka.KafkaPushSource
consume, getQueueLength, notifyError, read
-
Constructor Details
-
KafkaStringSource
public KafkaStringSource()
-
-
Method Details
-
buildRecord
public KafkaAbstractSource.KafkaRecord buildRecord(org.apache.kafka.clients.consumer.ConsumerRecord<Object, Object> consumerRecord) - Specified by:
buildRecordin classKafkaAbstractSource<String>
-