Enum MetadataType

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

public enum MetadataType extends Enum<MetadataType>
Enum with possible types of metadata.
  • Enum Constant Details

    • NONE

      public static final MetadataType NONE
      Metadata type which helps to indicate that there is no overflow of metadata.
    • TABLE

      public static final MetadataType TABLE
      Table level metadata type.
    • SEGMENT

      public static final MetadataType SEGMENT
      Segment level metadata type. It corresponds to the metadata within specific directory for FS tables, or may correspond to partition for hive tables.
    • PARTITION

      public static final MetadataType PARTITION
      Drill partition level metadata type. It corresponds to parts of table data which has the same values within specific column, i.e. partitions discovered by Drill.
    • FILE

      public static final MetadataType FILE
      File level metadata type.
    • ROW_GROUP

      public static final MetadataType ROW_GROUP
      Row group level metadata type. Used for parquet tables.
    • ALL

      public static final MetadataType ALL
      Metadata that can be applicable to any type.
    • VIEW

      public static final MetadataType VIEW
      Metadata type which belongs to views.
  • Method Details

    • values

      public static MetadataType[] 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 MetadataType 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
    • includes

      public boolean includes(MetadataType metadataType)
      Checks whether this MetadataType includes the specified one. For example, SEGMENT metadata type includes TABLE metadata type.
      Parameters:
      metadataType - metadata type to check
      Returns:
      true if this MetadataType includes the specified one, false otherwise.
    • fromValue

      public static MetadataType fromValue(String value)
      Converts metadata type string representation into MetadataType instance.
      Parameters:
      value - metadata
      Returns:
      metadata type instance, null otherwise