Package org.apache.iceberg.spark.data
Class ParquetWithSparkSchemaVisitor<T>
java.lang.Object
org.apache.iceberg.spark.data.ParquetWithSparkSchemaVisitor<T>
- Type Parameters:
T
- the Java class returned by the visitor
Visitor for traversing a Parquet type with a companion Spark type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
list
(org.apache.spark.sql.types.ArrayType sArray, org.apache.parquet.schema.GroupType array, T element) map
(org.apache.spark.sql.types.MapType sMap, org.apache.parquet.schema.GroupType map, T key, T value) message
(org.apache.spark.sql.types.StructType sStruct, org.apache.parquet.schema.MessageType message, List<T> fields) protected String[]
primitive
(org.apache.spark.sql.types.DataType sPrimitive, org.apache.parquet.schema.PrimitiveType primitive) struct
(org.apache.spark.sql.types.StructType sStruct, org.apache.parquet.schema.GroupType struct, List<T> fields) static <T> T
visit
(org.apache.spark.sql.types.DataType sType, org.apache.parquet.schema.Type type, ParquetWithSparkSchemaVisitor<T> visitor)
-
Constructor Details
-
ParquetWithSparkSchemaVisitor
public ParquetWithSparkSchemaVisitor()
-
-
Method Details
-
visit
public static <T> T visit(org.apache.spark.sql.types.DataType sType, org.apache.parquet.schema.Type type, ParquetWithSparkSchemaVisitor<T> visitor) -
message
-
struct
-
list
-
map
-
primitive
public T primitive(org.apache.spark.sql.types.DataType sPrimitive, org.apache.parquet.schema.PrimitiveType primitive) -
currentPath
-
path
-