public static class TypeUtil.CustomOrderSchemaVisitor<T>
extends java.lang.Object
Constructor and Description |
---|
CustomOrderSchemaVisitor() |
Modifier and Type | Method and Description |
---|---|
T |
field(Types.NestedField field,
java.util.function.Supplier<T> fieldResult) |
T |
list(Types.ListType list,
java.util.function.Supplier<T> elementResult) |
T |
map(Types.MapType map,
java.util.function.Supplier<T> keyResult,
java.util.function.Supplier<T> valueResult) |
T |
primitive(Type.PrimitiveType primitive) |
T |
schema(Schema schema,
java.util.function.Supplier<T> structResult) |
T |
struct(Types.StructType struct,
java.lang.Iterable<T> fieldResults) |
public T struct(Types.StructType struct, java.lang.Iterable<T> fieldResults)
public T field(Types.NestedField field, java.util.function.Supplier<T> fieldResult)
public T list(Types.ListType list, java.util.function.Supplier<T> elementResult)
public T map(Types.MapType map, java.util.function.Supplier<T> keyResult, java.util.function.Supplier<T> valueResult)
public T primitive(Type.PrimitiveType primitive)