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)
| 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 |