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
 
 public class ParquetWithSparkSchemaVisitor<T> extends java.lang.ObjectVisitor for traversing a Parquet type with a companion Spark type.
- 
- 
Constructor SummaryConstructors Constructor Description ParquetWithSparkSchemaVisitor()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]currentPath()Tlist(org.apache.spark.sql.types.ArrayType sArray, org.apache.parquet.schema.GroupType array, T element)Tmap(org.apache.spark.sql.types.MapType sMap, org.apache.parquet.schema.GroupType map, T key, T value)Tmessage(org.apache.spark.sql.types.StructType sStruct, org.apache.parquet.schema.MessageType message, java.util.List<T> fields)protected java.lang.String[]path(java.lang.String name)Tprimitive(org.apache.spark.sql.types.DataType sPrimitive, org.apache.parquet.schema.PrimitiveType primitive)Tstruct(org.apache.spark.sql.types.StructType sStruct, org.apache.parquet.schema.GroupType struct, java.util.List<T> fields)static <T> Tvisit(org.apache.spark.sql.types.DataType sType, org.apache.parquet.schema.Type type, ParquetWithSparkSchemaVisitor<T> visitor)
 
- 
- 
- 
Method Detail- 
visitpublic static <T> T visit(org.apache.spark.sql.types.DataType sType, org.apache.parquet.schema.Type type, ParquetWithSparkSchemaVisitor<T> visitor)
 - 
messagepublic T message(org.apache.spark.sql.types.StructType sStruct, org.apache.parquet.schema.MessageType message, java.util.List<T> fields) 
 - 
structpublic T struct(org.apache.spark.sql.types.StructType sStruct, org.apache.parquet.schema.GroupType struct, java.util.List<T> fields) 
 - 
listpublic T list(org.apache.spark.sql.types.ArrayType sArray, org.apache.parquet.schema.GroupType array, T element) 
 - 
mappublic T map(org.apache.spark.sql.types.MapType sMap, org.apache.parquet.schema.GroupType map, T key, T value) 
 - 
primitivepublic T primitive(org.apache.spark.sql.types.DataType sPrimitive, org.apache.parquet.schema.PrimitiveType primitive) 
 - 
currentPathprotected java.lang.String[] currentPath() 
 - 
pathprotected java.lang.String[] path(java.lang.String name) 
 
- 
 
-