Package io.debezium.connector.cassandra
Class CellData
- java.lang.Object
-
- io.debezium.connector.cassandra.CellData
-
- All Implemented Interfaces:
KafkaRecord
public class CellData extends Object implements KafkaRecord
Cell-level data about the source event. Each cell contains the name, value and type of a column in a Cassandra table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCellData.ColumnTypeThe type of a column in a Cassandra table
-
Field Summary
Fields Modifier and Type Field Description static StringCELL_DELETION_TS_KEYstatic StringCELL_SET_KEYstatic StringCELL_VALUE_KEYCellData.ColumnTypecolumnTypeObjectdeletionTsStringnameObjectvalue
-
Constructor Summary
Constructors Constructor Description CellData(String name, Object value, Object deletionTs, CellData.ColumnType columnType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static org.apache.kafka.connect.data.SchemacellSchema(com.datastax.driver.core.ColumnMetadata cm, boolean optional)booleanequals(Object o)inthashCode()booleanisPrimary()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 methodStringtoString()
-
-
-
Field Detail
-
CELL_VALUE_KEY
public static final String CELL_VALUE_KEY
- See Also:
- Constant Field Values
-
CELL_DELETION_TS_KEY
public static final String CELL_DELETION_TS_KEY
- See Also:
- Constant Field Values
-
CELL_SET_KEY
public static final String CELL_SET_KEY
- See Also:
- Constant Field Values
-
name
public final String name
-
value
public final Object value
-
deletionTs
public final Object deletionTs
-
columnType
public final CellData.ColumnType columnType
-
-
Constructor Detail
-
CellData
public CellData(String name, Object value, Object deletionTs, CellData.ColumnType columnType)
-
-
Method Detail
-
isPrimary
public boolean isPrimary()
-
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
-
cellSchema
static org.apache.kafka.connect.data.Schema cellSchema(com.datastax.driver.core.ColumnMetadata cm, boolean optional)
-
-