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

Method getDb

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

Gets the Db object from the Catalog using a case-insensitive lookup on the name. Returns null if no matching database is found.

(String dbName)

Source from the content-addressed store, hash-verified

201 * Returns null if no matching database is found.
202 */
203 public Db getDb(String dbName) {
204 Preconditions.checkArgument(dbName != null && !dbName.isEmpty(),
205 "Null or empty database name given as argument to Catalog.getDb");
206 return dbCache_.get(dbName.toLowerCase());
207 }
208
209 /**
210 * Removes a database from the metadata cache. Returns the value removed or null

Callers 11

testMetadataMethod · 0.95
getTableNoThrowMethod · 0.95
getTableMethod · 0.95
removeTableMethod · 0.95
getTableNamesMethod · 0.95
containsTableMethod · 0.95
addFunctionMethod · 0.95
getFunctionMethod · 0.95
removeFunctionMethod · 0.95
containsFunctionMethod · 0.95
getTCatalogObjectMethod · 0.95

Calls 2

getMethod · 0.65
isEmptyMethod · 0.45

Tested by 1

testMetadataMethod · 0.76