Package org.apache.avro.util
Class SchemaResolver
java.lang.Object
org.apache.avro.util.SchemaResolver
Utility class to resolve schemas that are unavailable at the point they are
referenced in a schema file. This class is meant for internal use: use at
your own risk!
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
This visitor checks if the current schema is fully resolved.static final class
This visitor creates clone of the visited Schemata, minus the specified schema properties, and resolves all unresolved schemas. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getUnresolvedSchemaName
(Schema schema) Get the unresolved schema name.static boolean
isFullyResolvedSchema
(Schema schema) Is this an unresolved schema?static boolean
isUnresolvedSchema
(Schema schema) Is this an unresolved schema.static Schema
unresolvedSchema
(String name) Create a schema to represent an "unresolved" schema.
-
Method Details
-
unresolvedSchema
Create a schema to represent an "unresolved" schema. (used to represent a schema whose definition does not exist, yet).- Parameters:
name
- a schema name- Returns:
- an unresolved schema for the given name
-
isUnresolvedSchema
Is this an unresolved schema.- Parameters:
schema
- a schema- Returns:
- whether the schema is an unresolved schema
-
getUnresolvedSchemaName
Get the unresolved schema name.- Parameters:
schema
- an unresolved schema- Returns:
- the name of the unresolved schema
-
isFullyResolvedSchema
Is this an unresolved schema?
-