Class MetadataIdentifierUtils
java.lang.Object
org.apache.drill.exec.metastore.analyze.MetadataIdentifierUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFileMetadataIdentifier
(List<String> partitionValues, org.apache.hadoop.fs.Path path) Returns file metadata identifier.static String
getMetadataIdentifierKey
(List<String> values) Returns string representation of metadata identifier using specified metadata identifier values.static String
getRowGroupMetadataIdentifier
(List<String> partitionValues, org.apache.hadoop.fs.Path path, int index) Returns row group metadata identifier.static String[]
getValuesFromMetadataIdentifier
(String metadataIdentifier) Returns array with metadata identifier values obtained from specified metadata identifier string.static boolean
isMetadataKeyParent
(String parent, String child) Checks whether the specified metadata identifier is a parent for another specified metadata identifier.
-
Constructor Details
-
MetadataIdentifierUtils
public MetadataIdentifierUtils()
-
-
Method Details
-
getMetadataIdentifierKey
Returns string representation of metadata identifier using specified metadata identifier values.- Parameters:
values
- metadata identifier values- Returns:
- string representation of metadata identifier
-
isMetadataKeyParent
Checks whether the specified metadata identifier is a parent for another specified metadata identifier.- Parameters:
parent
- parent metadata identifierchild
- 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 valuespath
- 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 valuespath
- file pathindex
- row group index- Returns:
- row group metadata identifier
-
getValuesFromMetadataIdentifier
Returns array with metadata identifier values obtained from specified metadata identifier string.- Parameters:
metadataIdentifier
- metadata identifier- Returns:
- array with metadata identifier values
-