Package io.debezium.connector.cassandra
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 theCellData.
-
-
Constructor Summary
Constructors Constructor Description RowData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCell(CellData cellData)RowDatacopy()booleanequals(Object o)(package private) List<CellData>getPrimary()booleanhasCell(String columnName)inthashCode()org.apache.kafka.connect.data.Structrecord(org.apache.kafka.connect.data.Schema schema)return an kafka connect Struct based on the schema passed into the methodvoidremoveCell(String columnName)(package private) static org.apache.kafka.connect.data.SchemarowSchema(com.datastax.driver.core.TableMetadata tm)Assemble the Kafka connectSchemafor the "after" field of the change event based on the Cassandra table schema.StringtoString()
-
-
-
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:KafkaRecordreturn an kafka connect Struct based on the schema passed into the method- Specified by:
recordin interfaceKafkaRecord- Parameters:
schema- of the Struct- Returns:
- a Struct
-
copy
public RowData copy()
-
rowSchema
static org.apache.kafka.connect.data.Schema rowSchema(com.datastax.driver.core.TableMetadata tm)
Assemble the Kafka connectSchemafor 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
-
-