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
Name | Type | Description |
---|---|---|
_defaultNamespace
|
string | The namespace that should be used as the default during schema parsing. |
_schemaByName
|
Rebindable!SchemaT[string] | Maps a fully qualified name to a Schema. |
Methods
Name | Description |
---|---|
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
Name | Description |
---|---|
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