Class KafkaRowConverterImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RelDataType rowDataType​(java.lang.String topicName)
      Generate row schema for a given Kafka topic.
      java.lang.Object[] toRow​(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],​byte[]> message)
      Parse and reformat Kafka message from consumer, to align with row schema defined as rowDataType(String).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KafkaRowConverterImpl

        public KafkaRowConverterImpl()
    • Method Detail

      • rowDataType

        public RelDataType rowDataType​(java.lang.String topicName)
        Generate row schema for a given Kafka topic.
        Specified by:
        rowDataType in interface KafkaRowConverter<byte[],​byte[]>
        Parameters:
        topicName - , Kafka topic name;
        Returns:
        row type
      • toRow

        public java.lang.Object[] toRow​(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],​byte[]> message)
        Parse and reformat Kafka message from consumer, to align with row schema defined as rowDataType(String).
        Specified by:
        toRow in interface KafkaRowConverter<byte[],​byte[]>
        Parameters:
        message - , the raw Kafka message record;
        Returns:
        fields in the row