Package org.apache.avro.util
Class SchemaResolver.IsResolvedSchemaVisitor
java.lang.Object
org.apache.avro.util.SchemaResolver.IsResolvedSchemaVisitor
- All Implemented Interfaces:
SchemaVisitor<Boolean>
- Enclosing class:
SchemaResolver
public static final class SchemaResolver.IsResolvedSchemaVisitor
extends Object
implements SchemaVisitor<Boolean>
This visitor checks if the current schema is fully resolved.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.avro.util.SchemaVisitor
SchemaVisitor.SchemaVisitorAction
-
Method Summary
Modifier and TypeMethodDescriptionafterVisitNonTerminal
(Schema nonTerminal) Invoked for schemas with children after its children have been visited.get()
Invoked when visiting is complete.visitNonTerminal
(Schema nonTerminal) 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.
-
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<Boolean>
-
visitNonTerminal
Description copied from interface:SchemaVisitor
Invoked for schema with children before proceeding to visit the children.- Specified by:
visitNonTerminal
in interfaceSchemaVisitor<Boolean>
-
afterVisitNonTerminal
Description copied from interface:SchemaVisitor
Invoked for schemas with children after its children have been visited.- Specified by:
afterVisitNonTerminal
in interfaceSchemaVisitor<Boolean>
-
get
Description copied from interface:SchemaVisitor
Invoked when visiting is complete.- Specified by:
get
in interfaceSchemaVisitor<Boolean>
- Returns:
- a value that will be returned by the visit method.
-