public static class TypeUtil.SchemaVisitor<T>
extends java.lang.Object
Constructor and Description |
---|
SchemaVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
afterField(Types.NestedField field) |
void |
afterListElement(Types.NestedField elementField) |
void |
afterMapKey(Types.NestedField keyField) |
void |
afterMapValue(Types.NestedField valueField) |
void |
beforeField(Types.NestedField field) |
void |
beforeListElement(Types.NestedField elementField) |
void |
beforeMapKey(Types.NestedField keyField) |
void |
beforeMapValue(Types.NestedField valueField) |
T |
field(Types.NestedField field,
T fieldResult) |
T |
list(Types.ListType list,
T elementResult) |
T |
map(Types.MapType map,
T keyResult,
T valueResult) |
T |
primitive(Type.PrimitiveType primitive) |
T |
schema(Schema schema,
T structResult) |
T |
struct(Types.StructType struct,
java.util.List<T> fieldResults) |
public void beforeField(Types.NestedField field)
public void afterField(Types.NestedField field)
public void beforeListElement(Types.NestedField elementField)
public void afterListElement(Types.NestedField elementField)
public void beforeMapKey(Types.NestedField keyField)
public void afterMapKey(Types.NestedField keyField)
public void beforeMapValue(Types.NestedField valueField)
public void afterMapValue(Types.NestedField valueField)
public T struct(Types.StructType struct, java.util.List<T> fieldResults)
public T field(Types.NestedField field, T fieldResult)
public T list(Types.ListType list, T elementResult)
public T map(Types.MapType map, T keyResult, T valueResult)
public T primitive(Type.PrimitiveType primitive)