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 Details

  • Constructor Details

    • RowData

      public RowData()
  • Method Details

    • addStart

      public void addStart(Object start)
    • addEnd

      public void addEnd(Object end)
    • getStart

      public Object getStart()
    • getEnd

      public Object getEnd()
    • addCell

      public void addCell(CellData cellData)
    • removeCell

      public void removeCell(String columnName)
    • hasCell

      public boolean hasCell(String columnName)
    • hasAnyCell

      public boolean hasAnyCell()
    • 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
    • rowSchema

      static org.apache.kafka.connect.data.Schema rowSchema(List<String> columnNames, List<com.datastax.oss.driver.api.core.type.DataType> columnsTypes)
    • 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