Avro C#
|
Base for all logical type implementations. More...
Public Member Functions | |
virtual void | ValidateSchema (LogicalSchema schema) |
Applies logical type validation for a given logical schema. More... | |
abstract object | ConvertToBaseValue (object logicalValue, LogicalSchema schema) |
Converts a logical value to an instance of its base type. More... | |
abstract object | ConvertToLogicalValue (object baseValue, LogicalSchema schema) |
Converts a base value to an instance of the logical type. More... | |
abstract Type | GetCSharpType (bool nullible) |
Retrieve the .NET type that is represented by the logical type implementation. More... | |
abstract bool | IsInstanceOfLogicalType (object logicalValue) |
Determines if a given object is an instance of the logical type. More... | |
Protected Member Functions | |
LogicalType (string name) | |
Initializes the base logical type. More... | |
Properties | |
string | Name [get] |
The logical type name. More... | |
Base for all logical type implementations.
|
inlineprotected |
Initializes the base logical type.
name | The logical type name. |
|
pure virtual |
Converts a logical value to an instance of its base type.
logicalValue | The logical value to convert. |
schema | The schema that represents the target of the conversion. |
Implemented in Avro.Util.Decimal, and Avro.Util.Uuid.
|
pure virtual |
Converts a base value to an instance of the logical type.
baseValue | The base value to convert. |
schema | The schema that represents the target of the conversion. |
Implemented in Avro.Util.Decimal, and Avro.Util.Uuid.
|
pure virtual |
Retrieve the .NET type that is represented by the logical type implementation.
nullible | A flag indicating whether it should be nullible. |
Implemented in Avro.Util.Decimal, Avro.Util.Uuid, and Avro.Util.LogicalUnixEpochType< T >.
|
pure virtual |
Determines if a given object is an instance of the logical type.
logicalValue | The logical value to test. |
Implemented in Avro.Util.Decimal, Avro.Util.Uuid, and Avro.Util.LogicalUnixEpochType< T >.
|
inlinevirtual |
Applies logical type validation for a given logical schema.
schema | The schema to be validated. |
Reimplemented in Avro.Util.Uuid, and Avro.Util.Decimal.
|
get |
The logical type name.