Class SchemaTable

A lookup table of known names for Schemas and the default namespace used during parsing.

class SchemaTable(SchemaT) ;

Some names are known before the schema is read, such as primitive types, which have no namespace and whose name matches their type. During parsing, if a schema does not designate a namespace, it inherits the namespace from the most tightly enclosing schema or protocol.

Fields

NameTypeDescription
_defaultNamespace stringThe namespace that should be used as the default during schema parsing.
_schemaByName Rebindable!SchemaT[string]Maps a fully qualified name to a Schema.

Methods

NameDescription
addSchema (schema) Adds a new schema to the set of known schemas.
containsName (name) Indicates whether a given name is known in the SchemaTable.
getSchemaByName (name) Look up a previously known Schema by its name.

Parameters

NameDescription
SchemaT Allows the caller to override the stored type, e.g. with a const.

See Also

https://avro.apache.org/docs/current/spec.html#names