Class OrcSchemaVisitor<T>

java.lang.Object
org.apache.iceberg.orc.OrcSchemaVisitor<T>
Direct Known Subclasses:
EstimateOrcAvgWidthVisitor

public abstract class OrcSchemaVisitor<T> extends Object
Generic visitor of an ORC Schema.
  • Constructor Details

    • OrcSchemaVisitor

      public OrcSchemaVisitor()
  • Method Details

    • visitSchema

      public static <T> List<T> visitSchema(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)
    • visit

      public static <T> T visit(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)
    • elementName

      public String elementName()
    • keyName

      public String keyName()
    • valueName

      public String valueName()
    • currentFieldName

      public String currentFieldName()
    • beforeField

      public void beforeField(String name, org.apache.orc.TypeDescription type)
    • afterField

      public void afterField(String name, org.apache.orc.TypeDescription type)
    • beforeElementField

      public void beforeElementField(org.apache.orc.TypeDescription element)
    • afterElementField

      public void afterElementField(org.apache.orc.TypeDescription element)
    • beforeKeyField

      public void beforeKeyField(org.apache.orc.TypeDescription key)
    • afterKeyField

      public void afterKeyField(org.apache.orc.TypeDescription key)
    • beforeValueField

      public void beforeValueField(org.apache.orc.TypeDescription value)
    • afterValueField

      public void afterValueField(org.apache.orc.TypeDescription value)
    • record

      public T record(org.apache.orc.TypeDescription record, List<String> names, List<T> fields)
    • list

      public T list(org.apache.orc.TypeDescription array, T element)
    • map

      public T map(org.apache.orc.TypeDescription map, T key, T value)
    • primitive

      public T primitive(org.apache.orc.TypeDescription primitive)
    • currentPath

      protected String[] currentPath()
    • path

      protected String[] path(String name)