Package org.apache.avro.util
Class SchemaResolver.ResolvingVisitor
java.lang.Object
org.apache.avro.util.SchemaResolver.ResolvingVisitor
- All Implemented Interfaces:
SchemaVisitor<Void>
- Enclosing class:
SchemaResolver
public static final class SchemaResolver.ResolvingVisitor
extends Object
implements SchemaVisitor<Void>
This visitor creates clone of the visited Schemata, minus the specified
schema properties, and resolves all unresolved schemas.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.avro.util.SchemaVisitor
SchemaVisitor.SchemaVisitorAction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionInvoked for schemas with children after its children have been visited.void
copyProperties
(Schema first, Schema second) get()
Invoked when visiting is complete.getResolved
(Schema schema) toString()
Invoked for schema with children before proceeding to visit the children.visitTerminal
(Schema terminal) Invoked for schemas that do not have "child" schemas (like string, int …) or for a previously encountered schema with children, which will be treated as a terminal.
-
Constructor Details
-
ResolvingVisitor
-
-
Method Details
-
visitTerminal
Description copied from interface:SchemaVisitor
Invoked for schemas that do not have "child" schemas (like string, int …) or for a previously encountered schema with children, which will be treated as a terminal. (to avoid circular recursion)- Specified by:
visitTerminal
in interfaceSchemaVisitor<Void>
-
visitNonTerminal
Description copied from interface:SchemaVisitor
Invoked for schema with children before proceeding to visit the children.- Specified by:
visitNonTerminal
in interfaceSchemaVisitor<Void>
-
copyProperties
-
afterVisitNonTerminal
Description copied from interface:SchemaVisitor
Invoked for schemas with children after its children have been visited.- Specified by:
afterVisitNonTerminal
in interfaceSchemaVisitor<Void>
-
get
Description copied from interface:SchemaVisitor
Invoked when visiting is complete.- Specified by:
get
in interfaceSchemaVisitor<Void>
- Returns:
- a value that will be returned by the visit method.
-
getResolved
-
toString
-