BuildExpression method
Builds a duration deserializer for a type-schema pair.
| Signature | public override Chr.Avro.Serialization.IBinaryDeserializerBuildResult BuildExpression (Chr.Avro.Resolution.TypeResolution resolution, Chr.Avro.Abstract.Schema schema, Chr.Avro.Serialization.IBinaryDeserializerBuilderContext context);
|
|---|
Parameters
The resolution to obtain type information from.
The schema to map to the type.
Information describing top-level expressions.
Return type
A successful result if the resolution is a
DurationResolution and the
schema’s logical type is a
DurationLogicalType; an unsuccessful result
otherwise.
Exceptions
Thrown when the schema is not a
FixedSchema with size 12 and logical
type
DurationLogicalType.
Thrown when
TimeSpan cannot be converted to the resolved type.