Class BinaryConfiguration
Binary type configuration.
Inheritance
Inherited Members
Namespace: Apache.Ignite.Core.Binary
Assembly: Apache.Ignite.Core.dll
Syntax
public class BinaryConfiguration
Constructors
BinaryConfiguration()
Initializes a new instance of the BinaryConfiguration class.
Declaration
public BinaryConfiguration()
BinaryConfiguration(BinaryConfiguration)
Initializes a new instance of the BinaryConfiguration class.
Declaration
public BinaryConfiguration(BinaryConfiguration cfg)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryConfiguration | cfg | The binary configuration to copy. |
BinaryConfiguration(Type[])
Initializes a new instance of the BinaryConfiguration class.
Declaration
public BinaryConfiguration(params Type[] binaryTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type[] | binaryTypes | Binary types to register. |
Fields
DefaultCompactFooter
Default CompactFooter setting.
Declaration
public const bool DefaultCompactFooter = true
Field Value
| Type | Description |
|---|---|
| System.Boolean |
DefaultKeepDeserialized
Default KeepDeserialized setting.
Declaration
public const bool DefaultKeepDeserialized = true
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
CompactFooter
Gets or sets a value indicating whether to write footers in compact form. When enabled, Ignite will not write fields metadata when serializing objects, because internally metadata is distributed inside cluster. This increases serialization performance.
WARNING! This mode should be disabled when already serialized data can be taken from some external sources (e.g.cache store which stores data in binary form, data center replication, etc.). Otherwise binary objects without any associated metadata could could not be deserialized.
Declaration
public bool CompactFooter { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IdMapper
Default ID mapper.
Declaration
public IBinaryIdMapper IdMapper { get; set; }
Property Value
| Type | Description |
|---|---|
| IBinaryIdMapper |
KeepDeserialized
Default keep deserialized flag.
Declaration
public bool KeepDeserialized { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
NameMapper
Default name mapper.
Declaration
public IBinaryNameMapper NameMapper { get; set; }
Property Value
| Type | Description |
|---|---|
| IBinaryNameMapper |
Serializer
Default serializer.
Declaration
public IBinarySerializer Serializer { get; set; }
Property Value
| Type | Description |
|---|---|
| IBinarySerializer |
TypeConfigurations
Type configurations.
Declaration
public ICollection<BinaryTypeConfiguration> TypeConfigurations { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<BinaryTypeConfiguration> |
Types
Gets or sets a collection of assembly-qualified type names (the result of System.Type.AssemblyQualifiedName) for binarizable types.
Shorthand for creating BinaryTypeConfiguration.
Declaration
public ICollection<string> Types { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<System.String> |