pub enum Codec {
}
Expand description
An Avro encoding
https://avro.apache.org/docs/1.11.1/specification/#encodings
Variants§
Null
Represents Avro null type, maps to Arrow’s Null data type
Boolean
Represents Avro boolean type, maps to Arrow’s Boolean data type
Int32
Represents Avro int type, maps to Arrow’s Int32 data type
Int64
Represents Avro long type, maps to Arrow’s Int64 data type
Float32
Represents Avro float type, maps to Arrow’s Float32 data type
Float64
Represents Avro double type, maps to Arrow’s Float64 data type
Binary
Represents Avro bytes type, maps to Arrow’s Binary data type
Utf8
String data represented as UTF-8 encoded bytes, corresponding to Arrow’s StringArray
Date32
Represents Avro date logical type, maps to Arrow’s Date32 data type
TimeMillis
Represents Avro time-millis logical type, maps to Arrow’s Time32(TimeUnit::Millisecond) data type
TimeMicros
Represents Avro time-micros logical type, maps to Arrow’s Time64(TimeUnit::Microsecond) data type
TimestampMillis(bool)
Represents Avro timestamp-millis or local-timestamp-millis logical type
Maps to Arrow’s Timestamp(TimeUnit::Millisecond) data type The boolean parameter indicates whether the timestamp has a UTC timezone (true) or is local time (false)
TimestampMicros(bool)
Represents Avro timestamp-micros or local-timestamp-micros logical type
Maps to Arrow’s Timestamp(TimeUnit::Microsecond) data type The boolean parameter indicates whether the timestamp has a UTC timezone (true) or is local time (false)
Fixed(i32)
Represents Avro fixed type, maps to Arrow’s FixedSizeBinary data type The i32 parameter indicates the fixed binary size
List(Arc<AvroDataType>)
Represents Avro array type, maps to Arrow’s List data type
Struct(Arc<[AvroField]>)
Represents Avro record type, maps to Arrow’s Struct data type
Interval
Represents Avro duration logical type, maps to Arrow’s Interval(IntervalUnit::MonthDayNano) data type