public final class StorageLocationHelper extends Object implements LocationHelper
| Constructor and Description |
|---|
StorageLocationHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
createPathIfRequired(Path dbPath,
FileIO fileIO) |
void |
dropPathIfRequired(Path path,
FileIO fileIO) |
String |
getDatabaseLocation(org.apache.hadoop.hive.metastore.api.Database database) |
String |
getTableLocation(org.apache.hadoop.hive.metastore.api.Table table) |
void |
specifyDatabaseLocation(Path path,
org.apache.hadoop.hive.metastore.api.Database database) |
void |
specifyTableLocation(org.apache.hadoop.hive.metastore.api.Table table,
String location) |
public void createPathIfRequired(Path dbPath, FileIO fileIO)
createPathIfRequired in interface LocationHelperpublic void dropPathIfRequired(Path path, FileIO fileIO)
dropPathIfRequired in interface LocationHelperpublic void specifyTableLocation(org.apache.hadoop.hive.metastore.api.Table table,
String location)
specifyTableLocation in interface LocationHelperpublic String getTableLocation(org.apache.hadoop.hive.metastore.api.Table table)
getTableLocation in interface LocationHelperpublic void specifyDatabaseLocation(Path path, org.apache.hadoop.hive.metastore.api.Database database)
specifyDatabaseLocation in interface LocationHelperpublic String getDatabaseLocation(org.apache.hadoop.hive.metastore.api.Database database)
getDatabaseLocation in interface LocationHelperCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.