Class MetadataIdentifierUtils

java.lang.Object
org.apache.drill.exec.metastore.analyze.MetadataIdentifierUtils

public class MetadataIdentifierUtils extends Object
  • Constructor Details

    • MetadataIdentifierUtils

      public MetadataIdentifierUtils()
  • Method Details

    • getMetadataIdentifierKey

      public static String getMetadataIdentifierKey(List<String> values)
      Returns string representation of metadata identifier using specified metadata identifier values.
      Parameters:
      values - metadata identifier values
      Returns:
      string representation of metadata identifier
    • isMetadataKeyParent

      public static boolean isMetadataKeyParent(String parent, String child)
      Checks whether the specified metadata identifier is a parent for another specified metadata identifier.
      Parameters:
      parent - parent metadata identifier
      child - child metadata identifier
      Returns:
      true if specified metadata identifier is a parent for another specified metadata identifier
    • getFileMetadataIdentifier

      public static String getFileMetadataIdentifier(List<String> partitionValues, org.apache.hadoop.fs.Path path)
      Returns file metadata identifier.
      Parameters:
      partitionValues - partition values
      path - file path
      Returns:
      file metadata identifier
    • getRowGroupMetadataIdentifier

      public static String getRowGroupMetadataIdentifier(List<String> partitionValues, org.apache.hadoop.fs.Path path, int index)
      Returns row group metadata identifier.
      Parameters:
      partitionValues - partition values
      path - file path
      index - row group index
      Returns:
      row group metadata identifier
    • getValuesFromMetadataIdentifier

      public static String[] getValuesFromMetadataIdentifier(String metadataIdentifier)
      Returns array with metadata identifier values obtained from specified metadata identifier string.
      Parameters:
      metadataIdentifier - metadata identifier
      Returns:
      array with metadata identifier values