Class UdtSerializer
Represents a TypeSerializer<T> instance that handles UDT serialization and deserialization.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.Serialization
Assembly: Cassandra.dll
Syntax
public class UdtSerializer : TypeSerializer<object>
Constructors
UdtSerializer()
Declaration
protected UdtSerializer()
Properties
CqlType
Declaration
public override ColumnTypeCode CqlType { get; }
Property Value
Type | Description |
---|---|
ColumnTypeCode |
Overrides
Cassandra.Serialization.TypeSerializer<object>.CqlType
Methods
Deserialize(ushort, byte[], int, int, IColumnInfo)
Declaration
public override object Deserialize(ushort protocolVersion, byte[] buffer, int offset, int length, IColumnInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
ushort | protocolVersion | |
byte[] | buffer | |
int | offset | |
int | length | |
IColumnInfo | typeInfo |
Returns
Type | Description |
---|---|
object |
Overrides
Cassandra.Serialization.TypeSerializer<object>.Deserialize(ushort, byte[], int, int, Cassandra.IColumnInfo)
GetClrType(IColumnInfo)
Declaration
protected virtual Type GetClrType(IColumnInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
IColumnInfo | typeInfo |
Returns
Type | Description |
---|---|
Type |
GetUdtMap(string)
Declaration
protected virtual UdtMap GetUdtMap(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Returns
Type | Description |
---|---|
UdtMap |
GetUdtMap(Type)
Declaration
protected virtual UdtMap GetUdtMap(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
UdtMap |
Serialize(ushort, object)
Declaration
public override byte[] Serialize(ushort protocolVersion, object value)
Parameters
Type | Name | Description |
---|---|---|
ushort | protocolVersion | |
object | value |
Returns
Type | Description |
---|---|
byte[] |
Overrides
Cassandra.Serialization.TypeSerializer<object>.Serialize(ushort, object)
SetUdtMap(string, UdtMap)
Sets a Udt map for a given Udt name
Declaration
public virtual void SetUdtMap(string name, UdtMap map)
Parameters
Type | Name | Description |
---|---|---|
string | name | Fully qualified udt name case sensitive (keyspace.udtName) |
UdtMap | map |