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 LocationHelper
public void dropPathIfRequired(Path path, FileIO fileIO)
dropPathIfRequired
in interface LocationHelper
public void specifyTableLocation(org.apache.hadoop.hive.metastore.api.Table table, String location)
specifyTableLocation
in interface LocationHelper
public String getTableLocation(org.apache.hadoop.hive.metastore.api.Table table)
getTableLocation
in interface LocationHelper
public void specifyDatabaseLocation(Path path, org.apache.hadoop.hive.metastore.api.Database database)
specifyDatabaseLocation
in interface LocationHelper
public String getDatabaseLocation(org.apache.hadoop.hive.metastore.api.Database database)
getDatabaseLocation
in interface LocationHelper
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.