@ThreadSafe @Immutable public final class CassandraTypeDeserializer extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Map<Class<? extends org.apache.cassandra.db.marshal.AbstractType>,TypeDeserializer> |
TYPE_MAP |
| Modifier | Constructor and Description |
|---|---|
private |
CassandraTypeDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
deserialize(org.apache.cassandra.db.marshal.AbstractType<?> abstractType,
ByteBuffer bb)
Deserialize from cdc-log-sourced cassandra data.
|
static Object |
deserialize(org.apache.cassandra.db.marshal.CollectionType<?> collectionType,
org.apache.cassandra.db.rows.ComplexColumnData ccd)
Deserialize from cdc-log-sourced cassandra data.
|
static Object |
deserialize(com.datastax.driver.core.DataType dataType,
ByteBuffer bb)
Deserialize from snapshot/datastax-sourced cassandra data.
|
static org.apache.kafka.connect.data.SchemaBuilder |
getSchemaBuilder(org.apache.cassandra.db.marshal.AbstractType<?> abstractType)
Construct a kafka connect SchemaBuilder object from a Cassandra data type
|
private static final Map<Class<? extends org.apache.cassandra.db.marshal.AbstractType>,TypeDeserializer> TYPE_MAP
public static Object deserialize(com.datastax.driver.core.DataType dataType, ByteBuffer bb)
dataType - the DataType of the objectbb - the bytes of the column to deserializepublic static Object deserialize(org.apache.cassandra.db.marshal.AbstractType<?> abstractType, ByteBuffer bb)
abstractType - the AbstractType of the non-collection columnbb - the bytes of the non-collection column to deserializepublic static Object deserialize(org.apache.cassandra.db.marshal.CollectionType<?> collectionType, org.apache.cassandra.db.rows.ComplexColumnData ccd)
collectionType - the CollectionType of the collection columnccd - the ComplexColumnData of the collection column to deserializepublic static org.apache.kafka.connect.data.SchemaBuilder getSchemaBuilder(org.apache.cassandra.db.marshal.AbstractType<?> abstractType)
abstractType - implementation of Cassandra's AbstractTypeCopyright © 2020 JBoss by Red Hat. All rights reserved.