Class ListTypeDeserializer
java.lang.Object
io.debezium.connector.cassandra.transforms.type.deserializer.CollectionTypeDeserializer<org.apache.cassandra.db.marshal.ListType<?>>
io.debezium.connector.cassandra.transforms.type.deserializer.ListTypeDeserializer
- All Implemented Interfaces:
TypeDeserializer
public class ListTypeDeserializer
extends CollectionTypeDeserializer<org.apache.cassandra.db.marshal.ListType<?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(org.apache.cassandra.db.marshal.AbstractType<?> abstractType, ByteBuffer bb) deserialize(org.apache.cassandra.db.marshal.ListType<?> listType, org.apache.cassandra.db.rows.ComplexColumnData ccd) org.apache.kafka.connect.data.SchemaBuildergetSchemaBuilder(org.apache.cassandra.db.marshal.AbstractType<?> abstractType) private List<?>processElementsInDeserializedList(org.apache.cassandra.db.marshal.AbstractType<?> abstractType, List<?> deserializedList) Format or deserialize each elements in deserialized list: If the element is logical type, format the element.
-
Field Details
-
deserializer
-
-
Constructor Details
-
ListTypeDeserializer
-
-
Method Details
-
deserialize
public Object deserialize(org.apache.cassandra.db.marshal.AbstractType<?> abstractType, ByteBuffer bb) -
getSchemaBuilder
public org.apache.kafka.connect.data.SchemaBuilder getSchemaBuilder(org.apache.cassandra.db.marshal.AbstractType<?> abstractType) -
deserialize
public Object deserialize(org.apache.cassandra.db.marshal.ListType<?> listType, org.apache.cassandra.db.rows.ComplexColumnData ccd) - Specified by:
deserializein classCollectionTypeDeserializer<org.apache.cassandra.db.marshal.ListType<?>>
-
processElementsInDeserializedList
private List<?> processElementsInDeserializedList(org.apache.cassandra.db.marshal.AbstractType<?> 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- theAbstractTypeof a column in CassandradeserializedList- List deserialized from Cassandra- Returns:
- A deserialized list from Cassandra with each element that fits in it's Kafka Schema.
-