T
- the Java class returned by the visitorpublic class TypeWithSchemaVisitor<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayDeque<java.lang.String> |
fieldNames |
Constructor and Description |
---|
TypeWithSchemaVisitor() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
currentPath() |
T |
list(Types.ListType iList,
org.apache.parquet.schema.GroupType array,
T element) |
T |
map(Types.MapType iMap,
org.apache.parquet.schema.GroupType map,
T key,
T value) |
T |
message(Types.StructType iStruct,
org.apache.parquet.schema.MessageType message,
java.util.List<T> fields) |
protected java.lang.String[] |
path(java.lang.String name) |
T |
primitive(Type.PrimitiveType iPrimitive,
org.apache.parquet.schema.PrimitiveType primitive) |
T |
struct(Types.StructType iStruct,
org.apache.parquet.schema.GroupType struct,
java.util.List<T> fields) |
static <T> T |
visit(Type iType,
org.apache.parquet.schema.Type type,
TypeWithSchemaVisitor<T> visitor) |
public static <T> T visit(Type iType, org.apache.parquet.schema.Type type, TypeWithSchemaVisitor<T> visitor)
public T message(Types.StructType iStruct, org.apache.parquet.schema.MessageType message, java.util.List<T> fields)
public T struct(Types.StructType iStruct, org.apache.parquet.schema.GroupType struct, java.util.List<T> fields)
public T list(Types.ListType iList, org.apache.parquet.schema.GroupType array, T element)
public T map(Types.MapType iMap, org.apache.parquet.schema.GroupType map, T key, T value)
public T primitive(Type.PrimitiveType iPrimitive, org.apache.parquet.schema.PrimitiveType primitive)
protected java.lang.String[] currentPath()
protected java.lang.String[] path(java.lang.String name)