Enum MetastoreColumn

java.lang.Object
java.lang.Enum<MetastoreColumn>
org.apache.drill.metastore.MetastoreColumn
All Implemented Interfaces:
Serializable, Comparable<MetastoreColumn>

public enum MetastoreColumn extends Enum<MetastoreColumn>
Metastore column definition, contains all Metastore column and their name to unique their usage in the code.
  • Enum Constant Details

  • Method Details

    • values

      public static MetastoreColumn[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MetastoreColumn valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • columnName

      public String columnName()
    • of

      public static MetastoreColumn of(String columnName)
      Looks up MetastoreColumn value for the given column name.
      Parameters:
      columnName - column name
      Returns:
      MetastoreColumn value
      Throws:
      MetastoreException - if MetastoreColumn value is not found