Package io.debezium.connector.cassandra
Class RowData
java.lang.Object
io.debezium.connector.cassandra.RowData
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcopy()booleangetEnd()getStart()booleanbooleaninthashCode()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.oss.driver.api.core.metadata.schema.TableMetadata tm) Assemble the Kafka connectSchemafor the "after" field of the change event based on the Cassandra table schema.(package private) static org.apache.kafka.connect.data.SchemarowSchema(List<String> columnNames, List<com.datastax.oss.driver.api.core.type.DataType> columnsTypes) toString()
-
Field Details
-
cellMap
-
start
-
end
-
-
Constructor Details
-
RowData
public RowData()
-
-
Method Details
-
addStart
-
addEnd
-
getStart
-
getEnd
-
addCell
-
removeCell
-
hasCell
-
hasAnyCell
public boolean hasAnyCell() -
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
-
rowSchema
static org.apache.kafka.connect.data.Schema rowSchema(com.datastax.oss.driver.api.core.metadata.schema.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
-
rowSchema
-
getPrimary
-
toString
-
equals
-
hashCode
public int hashCode()
-