K - type for Kafka message key,
refer to ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG;V - type for Kafka message value,
refer to ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG;public interface KafkaRowConverter<K,V>
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.calcite.rel.type.RelDataType |
rowDataType(String topicName)
Generates the row type for a given Kafka topic.
|
Object[] |
toRow(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> message)
Parses and reformats a Kafka message from the consumer,
to align with row type defined as
rowDataType(String). |
org.apache.calcite.rel.type.RelDataType rowDataType(String topicName)
topicName - Kafka topic nameObject[] toRow(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> message)
rowDataType(String).message - Raw Kafka message recordCopyright © 2012-2023 Apache Software Foundation. All Rights Reserved.