Package io.deephaven.kafka.ingest
Class ProtobufConsumerRecordToTableWriterAdapter
java.lang.Object
io.deephaven.kafka.ingest.ProtobufConsumerRecordToTableWriterAdapter
- All Implemented Interfaces:
ConsumerRecordToTableWriterAdapter
@ScriptApi public class ProtobufConsumerRecordToTableWriterAdapter extends Object implements ConsumerRecordToTableWriterAdapter
Converts a consumer record containing ProtoBuf serialized objects to a Deephaven row.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProtobufConsumerRecordToTableWriterAdapter.BuilderA builder to map key and value fields to table columns. -
Method Summary
Modifier and Type Method Description voidconsumeRecord(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record)Consume a Kafka record, producing zero or more rows in the output.
-
Method Details
-
consumeRecord
public void consumeRecord(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> record) throws IOExceptionDescription copied from interface:ConsumerRecordToTableWriterAdapterConsume a Kafka record, producing zero or more rows in the output.- Specified by:
consumeRecordin interfaceConsumerRecordToTableWriterAdapter- Parameters:
record- the record received fromKafkaConsumer.poll(Duration).- Throws:
IOException- if there was an error writing to the output table
-