MCPcopy Create free account
hub / github.com/apache/impala / getTable

Method getTable

fe/src/main/java/org/apache/impala/catalog/Catalog.java:242–249  ·  view source on GitHub ↗

Returns the Table object for the given dbName/tableName. Throws if the database does not exists. Returns null if the table does not exist. TODO: Clean up the inconsistent error behavior (throwing vs. returning null).

(String dbName, String tableName)

Source from the content-addressed store, hash-verified

240 * TODO: Clean up the inconsistent error behavior (throwing vs. returning null).
241 */
242 public Table getTable(String dbName, String tableName)
243 throws DatabaseNotFoundException {
244 Db db = getDb(dbName);
245 if (db == null) {
246 throw new DatabaseNotFoundException("Database '" + dbName + "' not found");
247 }
248 return db.getTable(tableName);
249 }
250
251 /**
252 * Returns the table with the given name if it's completely loaded in the cache.

Callers 3

getTableIfCachedMethod · 0.95
getHdfsPartitionMethod · 0.95
getTCatalogObjectMethod · 0.95

Calls 2

getDbMethod · 0.95
getTableMethod · 0.95

Tested by

no test coverage detected