Package com.streambase.sb
Class SchemaUtil.SchemaTraversal<T extends Exception>
- java.lang.Object
-
- com.streambase.sb.SchemaUtil.SchemaTraversal<T>
-
- Type Parameters:
T
- exception class
- Enclosing class:
- SchemaUtil
public abstract static class SchemaUtil.SchemaTraversal<T extends Exception> extends Object
a class that can be used to traverse all nested schemas in a schema
-
-
Constructor Summary
Constructors Constructor Description SchemaTraversal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(CompleteDataType cdt, String path)
void
run(Schema schema, String path)
Run the schema visitorvoid
visitField(Schema.Field field, String fieldPath)
This method will be called for each and every field in the schema, including nested fields and fields in lists of tuplesvoid
visitSchema(Schema schema, String fieldPath)
This method will be called for each and every schema
-
-
-
Method Detail
-
visitSchema
public void visitSchema(Schema schema, String fieldPath) throws T extends Exception
This method will be called for each and every schema
-
visitField
public void visitField(Schema.Field field, String fieldPath) throws T extends Exception
This method will be called for each and every field in the schema, including nested fields and fields in lists of tuples
-
run
public void run(CompleteDataType cdt, String path) throws T extends Exception
-
-