public class KafkaRowConverterImpl extends Object implements KafkaRowConverter<byte[],byte[]>
KafkaRowConverter, both key and value are byte[].| 构造器和说明 |
|---|
KafkaRowConverterImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.calcite.rel.type.RelDataType |
rowDataType(String topicName)
Generates the row schema for a given Kafka topic.
|
Object[] |
toRow(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> message)
Parses and reformats a Kafka message from the consumer, to align with the
row schema defined as
rowDataType(String). |
public org.apache.calcite.rel.type.RelDataType rowDataType(String topicName)
rowDataType 在接口中 KafkaRowConverter<byte[],byte[]>topicName - Kafka topic namepublic Object[] toRow(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> message)
rowDataType(String).toRow 在接口中 KafkaRowConverter<byte[],byte[]>message - Raw Kafka message recordCopyright © 2012-2023 Apache Software Foundation. All Rights Reserved.