Class RowData

java.lang.Object
io.debezium.connector.cassandra.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<String,CellData>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCell(CellData cellData)
     
     
    boolean
     
    (package private) List<CellData>
     
    boolean
    hasCell(String columnName)
     
    int
     
    org.apache.kafka.connect.data.Struct
    record(org.apache.kafka.connect.data.Schema schema)
    return an kafka connect Struct based on the schema passed into the method
    void
    removeCell(String columnName)
     
    (package private) static org.apache.kafka.connect.data.Schema
    rowSchema(com.datastax.oss.driver.api.core.metadata.schema.TableMetadata tm)
    Assemble the Kafka connect Schema for the "after" field of the change event based on the Cassandra table schema.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • RowData

      public RowData()
  • Method Details

    • 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
    • copy

      public RowData copy()
    • rowSchema

      static org.apache.kafka.connect.data.Schema rowSchema(com.datastax.oss.driver.api.core.metadata.schema.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
    • getPrimary

      List<CellData> getPrimary()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object