Class RowData

  • All Implemented Interfaces:
    KafkaRecord

    public class RowData
    extends Object
    implements KafkaRecord
    Row-level data about the source event. Contains a map where the key is the table column name and the value is the CellData.
    • Constructor Detail

      • RowData

        public RowData()
    • Method Detail

      • addCell

        public void addCell​(CellData cellData)
      • removeCell

        public void removeCell​(String columnName)
      • hasCell

        public boolean hasCell​(String columnName)
      • record

        public org.apache.kafka.connect.data.Struct record​(org.apache.kafka.connect.data.Schema schema)
        Description copied from interface: KafkaRecord
        return an kafka connect Struct based on the schema passed into the method
        Specified by:
        record in interface KafkaRecord
        Parameters:
        schema - of the Struct
        Returns:
        a Struct
      • rowSchema

        static org.apache.kafka.connect.data.Schema rowSchema​(com.datastax.driver.core.TableMetadata tm)
        Assemble the Kafka connect Schema for the "after" field of the change event based on the Cassandra table schema.
        Parameters:
        tm - metadata of a table that contains the Cassandra table schema
        Returns:
        a schema for the "after" field of a change event
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object