Class OrcSchemaVisitor<T>


  • public abstract class OrcSchemaVisitor<T>
    extends java.lang.Object
    Generic visitor of an ORC Schema.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterField​(java.lang.String name, org.apache.orc.TypeDescription type)  
      void beforeField​(java.lang.String name, org.apache.orc.TypeDescription type)  
      T list​(org.apache.orc.TypeDescription array, T element)  
      T map​(org.apache.orc.TypeDescription map, T key, T value)  
      T primitive​(org.apache.orc.TypeDescription primitive)  
      T record​(org.apache.orc.TypeDescription record, java.util.List<java.lang.String> names, java.util.List<T> fields)  
      static <T> T visit​(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)  
      static <T> java.util.List<T> visitSchema​(org.apache.orc.TypeDescription schema, OrcSchemaVisitor<T> visitor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrcSchemaVisitor

        public OrcSchemaVisitor()
    • Method Detail

      • visitSchema

        public static <T> java.util.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)
      • beforeField

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

        public void afterField​(java.lang.String name,
                               org.apache.orc.TypeDescription type)
      • record

        public T record​(org.apache.orc.TypeDescription record,
                        java.util.List<java.lang.String> names,
                        java.util.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)