Package org.apache.iceberg.parquet
Class TypeWithSchemaVisitor<T>
- java.lang.Object
-
- org.apache.iceberg.parquet.TypeWithSchemaVisitor<T>
-
- Type Parameters:
T
- the Java class returned by the visitor
- Direct Known Subclasses:
VectorizedReaderBuilder
public class TypeWithSchemaVisitor<T> extends java.lang.Object
Visitor for traversing a Parquet type with a companion Iceberg type.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayDeque<java.lang.String>
fieldNames
-
Constructor Summary
Constructors Constructor Description TypeWithSchemaVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
visit
public static <T> T visit(Type iType, org.apache.parquet.schema.Type type, TypeWithSchemaVisitor<T> visitor)
-
message
public T message(Types.StructType iStruct, org.apache.parquet.schema.MessageType message, java.util.List<T> fields)
-
struct
public T struct(Types.StructType iStruct, org.apache.parquet.schema.GroupType struct, java.util.List<T> fields)
-
list
public T list(Types.ListType iList, org.apache.parquet.schema.GroupType array, T element)
-
map
public T map(Types.MapType iMap, org.apache.parquet.schema.GroupType map, T key, T value)
-
primitive
public T primitive(Type.PrimitiveType iPrimitive, org.apache.parquet.schema.PrimitiveType primitive)
-
currentPath
protected java.lang.String[] currentPath()
-
path
protected java.lang.String[] path(java.lang.String name)
-
-