public final class CassandraTypeDeserializer extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Map<Class<? extends org.apache.cassandra.db.marshal.AbstractType>,TypeDeserializer> |
typeMap |
| 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(com.datastax.driver.core.DataType dataType,
ByteBuffer bb)
Deserialize from snapshot/datastax-sourced cassandra data.
|
static org.apache.avro.Schema |
getSchema(org.apache.cassandra.db.marshal.AbstractType<?> abstractType)
Construct an Avro Schema object from a Cassandra data type
|
private static final Map<Class<? extends org.apache.cassandra.db.marshal.AbstractType>,TypeDeserializer> typeMap
public static Object deserialize(com.datastax.driver.core.DataType dataType, ByteBuffer bb)
dataType - the DataType of the objectbb - the bytes to deserializepublic static Object deserialize(org.apache.cassandra.db.marshal.AbstractType<?> abstractType, ByteBuffer bb)
abstractType - the AbstractTypebb - the bytes to deserializepublic static org.apache.avro.Schema getSchema(org.apache.cassandra.db.marshal.AbstractType<?> abstractType)
abstractType - implementation of Cassandra's AbstractTypeCopyright © 2019 JBoss by Red Hat. All rights reserved.