Class 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.
    • 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: 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
      • cellSchema

        static org.apache.kafka.connect.data.Schema cellSchema​(com.datastax.driver.core.ColumnMetadata cm,
                                                               boolean optional)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object