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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInvoked for schemas with children after its children have been visited.voidcopyProperties(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:SchemaVisitorInvoked 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:
visitTerminalin interfaceSchemaVisitor<Void>
-
visitNonTerminal
Description copied from interface:SchemaVisitorInvoked for schema with children before proceeding to visit the children.- Specified by:
visitNonTerminalin interfaceSchemaVisitor<Void>
-
copyProperties
-
afterVisitNonTerminal
Description copied from interface:SchemaVisitorInvoked for schemas with children after its children have been visited.- Specified by:
afterVisitNonTerminalin interfaceSchemaVisitor<Void>
-
get
Description copied from interface:SchemaVisitorInvoked when visiting is complete.- Specified by:
getin interfaceSchemaVisitor<Void>- Returns:
- a value that will be returned by the visit method.
-
getResolved
-
toString
-