Class MetadataInfo

java.lang.Object
org.apache.drill.metastore.metadata.MetadataInfo

public class MetadataInfo extends Object
Class that specifies metadata type and metadata information which will be used for obtaining specific metadata from metastore. For example:
  • For table metadata: MetadataInfo[MetadataType.TABLE, MetadataInfo.GENERAL_INFO_KEY, MetadataInfo.GENERAL_INFO_KEY]
  • For default segment metadata: MetadataInfo[MetadataType.SEGMENT, MetadataInfo.DEFAULT_SEGMENT_KEY, MetadataInfo.DEFAULT_SEGMENT_KEY]
  • For top-level segment metadata: MetadataInfo[MetadataType.SEGMENT, "1994", "1994"]
  • For nested segment metadata: MetadataInfo[MetadataType.SEGMENT, "1994", "1994/Q1"]
  • For file metadata: MetadataInfo[MetadataType.FILE, "1994", "1994/Q1/0_0_0.parquet"]
  • For row group metadata: MetadataInfo[MetadataType.ROW_GROUP, "1994", "1994/Q1/0_0_0.parquet/1"]
  • For partition metadata: MetadataInfo[MetadataType.PARTITION, "1994", "1994/Q1/01"]