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. Codec for Mapping Avro and Arrow 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 πŸ”’
full_name_set πŸ”’
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_branch_name πŸ”’
union_first_duplicate πŸ”’
with_extension_type πŸ”’