Documentation
¶
Overview ¶
Package atype defines constants for Avro schema type names, logical type names, and field sort orders. These are the string values used in [avro.SchemaNode], [avro.SchemaField], and [avro.CustomType].
All constants are untyped strings and can be used directly wherever a string is expected.
Index ¶
Constants ¶
View Source
const ( Null = "null" Boolean = "boolean" Int = "int" Long = "long" Float = "float" Double = "double" String = "string" Bytes = "bytes" )
Avro primitive types.
View Source
const ( Record = "record" Error = "error" Enum = "enum" Array = "array" Map = "map" Union = "union" Fixed = "fixed" )
Avro complex types.
View Source
const ( Date = "date" TimeMillis = "time-millis" TimeMicros = "time-micros" TimestampMillis = "timestamp-millis" TimestampMicros = "timestamp-micros" TimestampNanos = "timestamp-nanos" LocalTimestampMillis = "local-timestamp-millis" LocalTimestampMicros = "local-timestamp-micros" LocalTimestampNanos = "local-timestamp-nanos" Decimal = "decimal" BigDecimal = "big-decimal" UUID = "uuid" Duration = "duration" )
Avro logical types.
View Source
const ( Ascending = "ascending" Descending = "descending" Ignore = "ignore" )
Avro field sort orders.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.