Base for all logical type implementations.
More...
|
| | LogicalType (string name) |
| | Initializes the base logical type.
|
| |
|
|
string | Name [get] |
| | The logical type name.
|
| |
Base for all logical type implementations.
◆ LogicalType()
| Avro.Util.LogicalType.LogicalType |
( |
string |
name | ) |
|
|
inlineprotected |
Initializes the base logical type.
- Parameters
-
| name | The logical type name. |
◆ ConvertToBaseValue()
| object Avro.Util.LogicalType.ConvertToBaseValue |
( |
object |
logicalValue, |
|
|
LogicalSchema |
schema |
|
) |
| |
|
abstract |
Converts a logical value to an instance of its base type.
- Parameters
-
| logicalValue | The logical value to convert. |
| schema | The schema that represents the target of the conversion. |
- Returns
- An object representing the encoded value of the base type.
◆ ConvertToLogicalValue()
| object Avro.Util.LogicalType.ConvertToLogicalValue |
( |
object |
baseValue, |
|
|
LogicalSchema |
schema |
|
) |
| |
|
abstract |
Converts a base value to an instance of the logical type.
- Parameters
-
| baseValue | The base value to convert. |
| schema | The schema that represents the target of the conversion. |
- Returns
- An object representing the encoded value of the logical type.
◆ GetCSharpType()
| Type Avro.Util.LogicalType.GetCSharpType |
( |
bool |
nullible | ) |
|
|
abstract |
Retrieve the .NET type that is represented by the logical type implementation.
- Parameters
-
| nullible | A flag indicating whether it should be nullible. |
◆ IsInstanceOfLogicalType()
| bool Avro.Util.LogicalType.IsInstanceOfLogicalType |
( |
object |
logicalValue | ) |
|
|
abstract |
Determines if a given object is an instance of the logical type.
- Parameters
-
| logicalValue | The logical value to test. |
◆ ValidateSchema()
| virtual void Avro.Util.LogicalType.ValidateSchema |
( |
LogicalSchema |
schema | ) |
|
|
inlinevirtual |
Applies logical type validation for a given logical schema.
- Parameters
-
| schema | The schema to be validated. |
Reimplemented in Avro.Util.Decimal, and Avro.Util.Uuid.
The documentation for this class was generated from the following file:
- src/apache/main/Util/LogicalType.cs