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
Visitor for traversing a Parquet type with a companion Iceberg type.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
list
(Types.ListType iList, org.apache.parquet.schema.GroupType array, T element) map
(Types.MapType iMap, org.apache.parquet.schema.GroupType map, T key, T value) message
(Types.StructType iStruct, org.apache.parquet.schema.MessageType message, List<T> fields) protected String[]
primitive
(Type.PrimitiveType iPrimitive, org.apache.parquet.schema.PrimitiveType primitive) struct
(Types.StructType iStruct, org.apache.parquet.schema.GroupType struct, List<T> fields) variant
(Types.VariantType iVariant, org.apache.parquet.schema.GroupType variant, T result) static <T> T
visit
(Type iType, org.apache.parquet.schema.Type type, TypeWithSchemaVisitor<T> visitor)
-
Field Details
-
fieldNames
-
-
Constructor Details
-
TypeWithSchemaVisitor
public TypeWithSchemaVisitor()
-
-
Method Details
-
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, List<T> fields) -
struct
public T struct(Types.StructType iStruct, org.apache.parquet.schema.GroupType struct, List<T> fields) -
list
-
map
-
variant
-
primitive
public T primitive(Type.PrimitiveType iPrimitive, org.apache.parquet.schema.PrimitiveType primitive) -
variantVisitor
-
currentPath
-
path
-