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

Method getFunction

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

Returns the function that best matches 'desc' that is registered with the catalog using 'mode' to check for matching. If desc matches multiple functions in the catalog, it will return the function with the strictest matching mode. If multiple functions match at the same matching mode, best match is

(Function desc, Function.CompareMode mode)

Source from the content-addressed store, hash-verified

402 * alphabetical order of argument type name, to guarantee deterministic results.
403 */
404 public @Nullable Function getFunction(Function desc, Function.CompareMode mode) {
405 Db db = getDb(desc.dbName());
406 if (db == null) return null;
407 return db.getFunction(desc, mode);
408 }
409
410 /**
411 * Removes a function from the catalog. Increments the catalog version and returns

Callers 1

getTCatalogObjectMethod · 0.95

Calls 3

getDbMethod · 0.95
getFunctionMethod · 0.95
dbNameMethod · 0.80

Tested by

no test coverage detected