Skip to main content

Module schema

Module schema 

Source
Expand description

Logic for parsing and interacting with schemas in Avro format.

StructsΒ§

FullName
Name
Represents names for record, enum and fixed Avro schemas.
NamedSchemaPiece
ParseSchemaError
Describes errors happened while parsing Avro schemas.
RecordField
Represents a field in a record Avro schema.
RecordFieldSerContext πŸ”’
ResolvedDefaultValueField
Schema
Represents any valid Avro schema More information about Avro schemas can be found in the Avro Specification
SchemaFingerprint
Represents an Avro schema fingerprint More information about Avro schema fingerprints can be found in the Avro Schema Resolution documentation
SchemaNode
SchemaNodeOrNamed
SchemaParser πŸ”’
SchemaSerContext πŸ”’
SchemaSubtreeDeepCloner πŸ”’
UnionSchema

EnumsΒ§

RecordFieldOrder
Represents any valid order for a field in a record Avro schema.
ResolvedRecordField
SchemaKind
This type is used to simplify enum variant comparison between Schema and types::Value.
SchemaPiece
SchemaPieceOrNamed
SchemaPieceRefOrNamed

ConstantsΒ§

MAX_SCHEMA_DEPTH πŸ”’
Cap on nested-type depth while parsing an Avro schema JSON. The parser recurses through parse_inner for every nested record/array/map/ union so an untrusted schema like {"type":{"type":{"type":...}}} can otherwise overflow the stack.

FunctionsΒ§

can_promote πŸ”’
Returns true if a value written with primitive schema writer can be read as primitive reader under Avro’s numeric promotion rules: int β†’ long/float/double, long β†’ float/double, and float β†’ double.
field_ordering_position πŸ”’
parsing_canonical_form πŸ”’
Parses a valid avro schema into the Parsing Canonical Form. https://avro.apache.org/docs/++version++/specification#parsing-canonical-form-for-schemas
pcf πŸ”’
pcf_array πŸ”’
pcf_map πŸ”’
pcf_string πŸ”’
resolve_schemas

Type AliasesΒ§

Documentation
Represents documentation for complex Avro schemas.