Class AvroLogicalType
A logical type annotating a primitive or fixed schema. Parameterless logical types are singletons;
decimal is represented by DecimalLogicalType.
public abstract class AvroLogicalType
- Inheritance
-
AvroLogicalType
- Derived
- Inherited Members
Remarks
As the specification requires, unknown or invalid logical types are ignored when parsing: the schema then has no LogicalType, and the original attributes are kept in Properties.
Properties
- BigDecimal
Gets the
big-decimallogical type.
- Date
Gets the
datelogical type.
- Duration
Gets the
durationlogical type.
- Kind
Gets the kind of logical type.
- LocalTimestampMicros
Gets the
local-timestamp-microslogical type.
- LocalTimestampMillis
Gets the
local-timestamp-millislogical type.
- LocalTimestampNanos
Gets the
local-timestamp-nanoslogical type.
- Name
Gets the name used in the
logicalTypeattribute.
- TimeMicros
Gets the
time-microslogical type.
- TimeMillis
Gets the
time-millislogical type.
- TimestampMicros
Gets the
timestamp-microslogical type.
- TimestampMillis
Gets the
timestamp-millislogical type.
- TimestampNanos
Gets the
timestamp-nanoslogical type.
- Uuid
Gets the
uuidlogical type.
Methods
- Decimal(int, int)
Creates a
decimallogical type.
- IsValidFor(AvroSchema)
Returns true when this logical type may annotate
schema(for exampledateonint, or adecimalwhose precision fits the fixed size).
- ToString()
Returns a string that represents the current object.