Class TypeWithSchemaVisitor<T>

java.lang.Object
org.apache.iceberg.parquet.TypeWithSchemaVisitor<T>
Type Parameters:
T - the Java class returned by the visitor

public class TypeWithSchemaVisitor<T> extends Object
Visitor for traversing a Parquet type with a companion Iceberg type.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected ArrayDeque<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String[]
     
    list(org.apache.iceberg.types.Types.ListType iList, org.apache.parquet.schema.GroupType array, T element)
     
    map(org.apache.iceberg.types.Types.MapType iMap, org.apache.parquet.schema.GroupType map, T key, T value)
     
    message(org.apache.iceberg.types.Types.StructType iStruct, org.apache.parquet.schema.MessageType message, List<T> fields)
     
    protected String[]
    path(String name)
     
    primitive(org.apache.iceberg.types.Type.PrimitiveType iPrimitive, org.apache.parquet.schema.PrimitiveType primitive)
     
    struct(org.apache.iceberg.types.Types.StructType iStruct, org.apache.parquet.schema.GroupType struct, List<T> fields)
     
    variant(org.apache.iceberg.types.Types.VariantType iVariant, org.apache.parquet.schema.GroupType variant, T result)
     
     
    static <T> T
    visit(org.apache.iceberg.types.Type iType, org.apache.parquet.schema.Type type, TypeWithSchemaVisitor<T> visitor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TypeWithSchemaVisitor

      public TypeWithSchemaVisitor()
  • Method Details

    • visit

      public static <T> T visit(org.apache.iceberg.types.Type iType, org.apache.parquet.schema.Type type, TypeWithSchemaVisitor<T> visitor)
    • message

      public T message(org.apache.iceberg.types.Types.StructType iStruct, org.apache.parquet.schema.MessageType message, List<T> fields)
    • struct

      public T struct(org.apache.iceberg.types.Types.StructType iStruct, org.apache.parquet.schema.GroupType struct, List<T> fields)
    • list

      public T list(org.apache.iceberg.types.Types.ListType iList, org.apache.parquet.schema.GroupType array, T element)
    • map

      public T map(org.apache.iceberg.types.Types.MapType iMap, org.apache.parquet.schema.GroupType map, T key, T value)
    • variant

      public T variant(org.apache.iceberg.types.Types.VariantType iVariant, org.apache.parquet.schema.GroupType variant, T result)
    • primitive

      public T primitive(org.apache.iceberg.types.Type.PrimitiveType iPrimitive, org.apache.parquet.schema.PrimitiveType primitive)
    • variantVisitor

      public ParquetVariantVisitor<T> variantVisitor()
    • currentPath

      protected String[] currentPath()
    • path

      protected String[] path(String name)