public final class TBPropertiesLocationHelper extends Object implements LocationHelper
Constructor and Description |
---|
TBPropertiesLocationHelper() |
Modifier and Type | Method and Description |
---|---|
void |
createPathIfRequired(Path path,
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 path, FileIO fileIO) throws IOException
createPathIfRequired
in interface LocationHelper
IOException
public void dropPathIfRequired(Path path, FileIO fileIO) throws IOException
dropPathIfRequired
in interface LocationHelper
IOException
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.