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