MCPcopy Create free account
hub / github.com/apache/avro-rs / register_resolving_schema

Method register_resolving_schema

avro/src/schema/parser.rs:477–491  ·  view source on GitHub ↗
(&mut self, name: &Name, aliases: &Aliases)

Source from the content-addressed store, hash-verified

475 .insert(name.clone(), resolving_schema.clone());
476
477 let namespace = name.namespace();
478
479 if let Some(aliases) = aliases {
480 aliases.iter().for_each(|alias| {
481 let alias_fullname = alias.fully_qualified_name(namespace).into_owned();
482 self.resolving_schemas
483 .insert(alias_fullname, resolving_schema.clone());
484 });
485 }
486 }
487
488 fn register_parsed_schema(
489 &mut self,
490 fully_qualified_name: &Name,
491 schema: &Schema,
492 aliases: &Aliases,
493 ) {
494 // FIXME, this should be globally aware, so if there is something overwriting something

Callers 1

parse_recordMethod · 0.80

Calls 3

fully_qualified_nameMethod · 0.80
cloneMethod · 0.45
namespaceMethod · 0.45

Tested by

no test coverage detected