Class ArowSerializer
Facade for performing Arow serilalization. Arow format is purposely designed for "[a]daptable [row]"/version tolerant serialization that eschews creating extra copies and object instances. The serializer is used in conjunction with cl compiler that generates type-specific static serializer cores for every type that supports the format
Inheritance
System.Object
ArowSerializer
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: Azos.Serialization.Arow
Assembly: Azos.dll
Syntax
public static class ArowSerializer
Fields
AROW_TARGET
Declaration
public const string AROW_TARGET = "AROW-SERIALIZER"
Field Value
Type | Description |
---|---|
System.String |
Methods
Deserialize(TypedDoc, ReadingStreamer, Boolean)
Declaration
public static void Deserialize(TypedDoc doc, ReadingStreamer streamer, bool header = true)
Parameters
Type | Name | Description |
---|---|---|
TypedDoc | doc | |
ReadingStreamer | streamer | |
System.Boolean | header |
IsDocTypeSupported(Type)
Declaration
public static bool IsDocTypeSupported(Type tDoc)
Parameters
Type | Name | Description |
---|---|---|
System.Type | tDoc |
Returns
Type | Description |
---|---|
System.Boolean |
Register(Type, ITypeSerializationCore)
Registers ITypeSerializationCore so it can be used globaly to serialize TypedRows in Arow format
Declaration
public static bool Register(Type tRow, ITypeSerializationCore core)
Parameters
Type | Name | Description |
---|---|---|
System.Type | tRow | |
ITypeSerializationCore | core |
Returns
Type | Description |
---|---|
System.Boolean |
RegisterTypeSerializationCores(Assembly)
Declaration
public static void RegisterTypeSerializationCores(Assembly asm)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | asm |
Serialize(TypedDoc, WritingStreamer, Boolean)
Declaration
public static void Serialize(TypedDoc doc, WritingStreamer streamer, bool header = true)
Parameters
Type | Name | Description |
---|---|---|
TypedDoc | doc | |
WritingStreamer | streamer | |
System.Boolean | header |
TryDeserialize(TypedDoc, ReadingStreamer, Boolean)
Declaration
public static bool TryDeserialize(TypedDoc doc, ReadingStreamer streamer, bool header = true)
Parameters
Type | Name | Description |
---|---|---|
TypedDoc | doc | |
ReadingStreamer | streamer | |
System.Boolean | header |
Returns
Type | Description |
---|---|
System.Boolean |