public Path getWhRootExternal() throws MetaException { if (whRootExternal != null) { return whRootExternal; } if (!hasExternalWarehouseRoot()) { whRootExternal = getWhRoot(); } else { whRootExternal = getDnsPath(new Path(whRootExternalString)); } return whRootExternal; }
public Path getDefaultTablePath(String dbName, String tableName, boolean isExternal) throws MetaException { Path dbPath = null; if (isExternal && hasExternalWarehouseRoot()) { dbPath = getDefaultExternalDatabasePath(dbName); } else { dbPath = getDefaultDatabasePath(dbName); } return getDnsPath( new Path(dbPath, MetaStoreUtils.encodeTableName(tableName.toLowerCase()))); }
public Path getDefaultTablePath(Database db, String tableName, boolean isExternal) throws MetaException { Path dbPath = null; if (isExternal && hasExternalWarehouseRoot()) { dbPath = getDefaultExternalDatabasePath(db.getName()); } else { dbPath = getDatabasePath(db); } return getDnsPath( new Path(dbPath, MetaStoreUtils.encodeTableName(tableName.toLowerCase()))); }
public Path getWhRootExternal() throws MetaException { if (whRootExternal != null) { return whRootExternal; } if (!hasExternalWarehouseRoot()) { whRootExternal = getWhRoot(); } else { whRootExternal = getDnsPath(new Path(whRootExternalString)); } return whRootExternal; }
public Path getDefaultTablePath(String dbName, String tableName, boolean isExternal) throws MetaException { Path dbPath = null; if (isExternal && hasExternalWarehouseRoot()) { dbPath = getDefaultExternalDatabasePath(dbName); } else { dbPath = getDefaultDatabasePath(dbName); } return getDnsPath( new Path(dbPath, MetaStoreUtils.encodeTableName(tableName.toLowerCase()))); }
public Path getDefaultTablePath(Database db, String tableName, boolean isExternal) throws MetaException { Path dbPath = null; if (isExternal && hasExternalWarehouseRoot()) { dbPath = getDefaultExternalDatabasePath(db.getName()); } else { dbPath = getDatabasePath(db); } return getDnsPath( new Path(dbPath, MetaStoreUtils.encodeTableName(tableName.toLowerCase()))); }