Class DecimalLogicalType
The decimal logical type: an arbitrary-precision decimal stored as a scaled two's-complement integer.
public sealed class DecimalLogicalType : AvroLogicalType, IEquatable<DecimalLogicalType>
- Inheritance
-
DecimalLogicalType
- Implements
- Inherited Members
Properties
- Precision
Gets the maximum number of digits.
- Scale
Gets the number of digits after the decimal point.
Methods
- Equals(DecimalLogicalType?)
Indicates whether the current object is equal to another object of the same type.
- Equals(object?)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.
- IsValidFor(AvroSchema)
Returns true when this logical type may annotate
schema(for exampledateonint, or adecimalwhose precision fits the fixed size).
- MaxPrecisionForFixedSize(int)
Gets the largest precision a
fixedofsizebytes can hold:floor(log10(2^(8 * size - 1) - 1)).
- ToString()
Returns a string that represents the current object.