public abstract static class SchemaUtil.SchemaTraversal<T extends java.lang.Exception>
extends java.lang.Object
Constructor and Description |
---|
SchemaTraversal() |
Modifier and Type | Method and Description |
---|---|
void |
run(CompleteDataType cdt,
java.lang.String path) |
void |
run(Schema schema,
java.lang.String path)
run the schema visitor
|
void |
visitField(Schema.Field field,
java.lang.String fieldPath)
This method will be called for each and every field in the schema, including
nested fields and fields in lists of tuples
|
void |
visitSchema(Schema schema,
java.lang.String fieldPath)
This method will be called for each and every schema
|
public void visitSchema(Schema schema, java.lang.String fieldPath) throws T extends java.lang.Exception
schema
- the current schemaT
- exception class supplied as a parameterT extends java.lang.Exception
public void visitField(Schema.Field field, java.lang.String fieldPath) throws T extends java.lang.Exception
T extends java.lang.Exception
public void run(CompleteDataType cdt, java.lang.String path) throws T extends java.lang.Exception
T extends java.lang.Exception