Enum MetadataType
- All Implemented Interfaces:
Serializable
,Comparable<MetadataType>
Enum with possible types of metadata.
-
Enum Constant Summary
Enum ConstantDescriptionMetadata that can be applicable to any type.File level metadata type.Metadata type which helps to indicate that there is no overflow of metadata.Drill partition level metadata type.Row group level metadata type.Segment level metadata type.Table level metadata type.Metadata type which belongs to views. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataType
Converts metadata type string representation intoMetadataType
instance.boolean
includes
(MetadataType metadataType) Checks whether thisMetadataType
includes the specified one.static MetadataType
Returns the enum constant of this type with the specified name.static MetadataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Metadata type which helps to indicate that there is no overflow of metadata. -
TABLE
Table level metadata type. -
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
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
File level metadata type. -
ROW_GROUP
Row group level metadata type. Used for parquet tables. -
ALL
Metadata that can be applicable to any type. -
VIEW
Metadata type which belongs to views.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
includes
Checks whether thisMetadataType
includes the specified one. For example,SEGMENT
metadata type includesTABLE
metadata type.- Parameters:
metadataType
- metadata type to check- Returns:
true
if thisMetadataType
includes the specified one,false
otherwise.
-
fromValue
Converts metadata type string representation intoMetadataType
instance.- Parameters:
value
- metadata- Returns:
- metadata type instance, null otherwise
-