Package io.debezium.connector.cassandra
Class CassandraSchemaFactory.RowData
java.lang.Object
io.debezium.connector.cassandra.CassandraSchemaFactory.RowData
- All Implemented Interfaces:
KafkaRecord
- Enclosing class:
CassandraSchemaFactory
Row-level data about the source event. Contains a map where the key is the table column
name and the value is the
CassandraSchemaFactory.CellData.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, CassandraSchemaFactory.CellData> private CassandraSchemaFactory.RangeDataprivate CassandraSchemaFactory.RangeData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCell(CassandraSchemaFactory.CellData cellData) voidaddEndRange(CassandraSchemaFactory.RangeData endRange) voidaddStartRange(CassandraSchemaFactory.RangeData startRange) copy()booleanbooleanbooleaninthashCode()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
-
startRange
-
endRange
-
-
Constructor Details
-
RowData
private RowData()
-
-
Method Details
-
addStartRange
-
addEndRange
-
getStartRange
-
getEndRange
-
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()
-