Class AbstractListTypeDeserializer

All Implemented Interfaces:
TypeDeserializer

public abstract class AbstractListTypeDeserializer extends CollectionTypeDeserializer
  • Constructor Details

  • Method Details

    • deserialize

      public Object deserialize(Object abstractType, ByteBuffer bb)
      Specified by:
      deserialize in interface TypeDeserializer
      Overrides:
      deserialize in class AbstractTypeDeserializer
    • getSchemaBuilder

      public org.apache.kafka.connect.data.SchemaBuilder getSchemaBuilder(Object abstractType)
    • deserialize

      public Object deserialize(Object abstractType, List<ByteBuffer> bbList)
      Specified by:
      deserialize in class CollectionTypeDeserializer
    • processElementsInDeserializedList

      private List<?> processElementsInDeserializedList(Object abstractType, List<?> deserializedList)
      Format or deserialize each elements in deserialized list: If the element is logical type, format the element. If the element is UserType or TupleType, deserialize the element.
      Parameters:
      abstractType - the AbstractType of a column in Cassandra
      deserializedList - List deserialized from Cassandra
      Returns:
      A deserialized list from Cassandra with each element that fits in it's Kafka Schema.
    • getAbstractType

      public Object getAbstractType(com.datastax.oss.driver.api.core.type.DataType dataType)
    • getElementsType

      protected abstract Object getElementsType(Object abstractType)
    • getAbstractTypeInstance

      protected abstract Object getAbstractTypeInstance(Object innerAbstractType, boolean isMultiCell)