Module codec

Module codec 

Source
Expand description

Data type conversions between Avro and Arrow types

This module contains the necessary types and functions to convert between Avro data types and Arrow data types.

Structs§

AvroDataType
An Avro datatype mapped to the arrow data model
AvroField
A named AvroDataType
AvroFieldBuilder
Builder for an AvroField
EnumMapping
Holds the mapping information for resolving Avro enums.
Maker 🔒
Resolves Avro type names to AvroDataType
ResolvedRecord
Contains the necessary information to resolve a writer’s record against a reader’s record schema.
ResolvedUnion
Information required to resolve a writer union against a reader union (or single type).
Resolver 🔒
Resolves Avro type names to AvroDataType

Enums§

AvroLiteral 🔒
Represents a literal Avro value.
Codec
An Avro encoding
Promotion 🔒
Defines the type of promotion to be applied during schema resolution.
ResolutionInfo 🔒
Contains information about how to resolve differences between a writer’s and a reader’s schema.
UnionBranchKey 🔒
UnionFieldKind 🔒

Functions§

branch_key_of 🔒
build_union_fields 🔒
ensure_names_match 🔒
max_precision_for_fixed_bytes 🔒
Compute the exact maximum base‑10 precision that fits in n bytes for Avro fixed decimals stored as two’s‑complement unscaled integers (big‑endian).
names_match 🔒
nullable_union_variants 🔒
parse_decimal_attributes 🔒
primitive_of 🔒
union_first_duplicate 🔒
with_extension_type 🔒