Enum 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.

      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.

      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.

      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.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      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.
      metadataType - metadata type to check
      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.
      value - metadata
      metadata type instance, null otherwise