Interface MessageReader
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
AvroMessageReader
,JsonMessageReader
MessageReader interface provides mechanism to handle various Kafka Message
Formats like JSON, AVRO or custom message formats.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
endBatch()
org.apache.kafka.clients.consumer.KafkaConsumer<byte[],
byte[]> getConsumer
(KafkaStoragePlugin plugin) void
init
(SchemaNegotiator negotiator, ReadOptions readOptions, KafkaStoragePlugin plugin) void
readMessage
(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> message)
-
Method Details
-
init
-
readMessage
void readMessage(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?> message) -
getConsumer
org.apache.kafka.clients.consumer.KafkaConsumer<byte[],byte[]> getConsumer(KafkaStoragePlugin plugin) -
getResultSetLoader
ResultSetLoader getResultSetLoader() -
endBatch
boolean endBatch()
-