Apache Ignite.NET
Apache.Ignite.Core.Binary.BinaryReflectiveSerializer Class Reference

Binary serializer which reflectively writes all fields except of ones with System.NonSerializedAttribute. More...

Inheritance diagram for Apache.Ignite.Core.Binary.BinaryReflectiveSerializer:
Apache.Ignite.Core.Binary.IBinarySerializer

Public Member Functions

void WriteBinary (object obj, IBinaryWriter writer)
 Write binary object. More...
 
void ReadBinary (object obj, IBinaryReader reader)
 Read binary object. More...
 

Properties

bool RawMode [get, set]
 Gets or value indicating whether raw mode serialization should be used. More...
 

Detailed Description

Note that Java platform stores dates as a difference between current time and predefined absolute UTC date. Therefore, this difference is always the same for all time zones. .NET, in contrast, stores dates as a difference between current time and some predefined date relative to the current time zone. It means that this difference will be different as you change time zones. To overcome this discrepancy Ignite always converts .Net date to UTC form before serializing and allows user to decide whether to deserialize them in UTC or local form using ReadTimestamp(..., true/false) methods in IBinaryReader and IBinaryRawReader. This serializer always read dates in UTC form. It means that if you have local date in any field/property, it will be implicitly converted to UTC form after the first serialization-deserialization cycle.

Member Function Documentation

void Apache.Ignite.Core.Binary.BinaryReflectiveSerializer.ReadBinary ( object  obj,
IBinaryReader  reader 
)
Parameters
objInstantiated empty object.
readerBinary reader.

Implements Apache.Ignite.Core.Binary.IBinarySerializer.

void Apache.Ignite.Core.Binary.BinaryReflectiveSerializer.WriteBinary ( object  obj,
IBinaryWriter  writer 
)
Parameters
objObject.
writerBinary writer.

Implements Apache.Ignite.Core.Binary.IBinarySerializer.

Property Documentation

bool Apache.Ignite.Core.Binary.BinaryReflectiveSerializer.RawMode
getset

Raw mode does not include field names, improving performance and memory usage. However, queries do not support raw objects.