Class TypeDescriptor

java.lang.Object
org.apache.drill.common.scanner.persistence.TypeDescriptor

public abstract class TypeDescriptor extends Object
represents the type of a field
  • Method Details

    • isPrimitive

      public boolean isPrimitive()
    • isArray

      public boolean isArray()
    • getArrayDim

      public int getArrayDim()
      Returns:
      the number of dimensions of the array or 0 if it's not an array
    • getType

      public abstract Class<?> getType()
      Returns:
      the type (element type if an array)
    • forClass

      public static TypeDescriptor forClass(String className, int arrayDim)
    • forPrimitive

      public static TypeDescriptor forPrimitive(char c, int arrayDim)