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

Method addBuiltin

fe/src/main/java/org/apache/impala/catalog/Db.java:458–463  ·  view source on GitHub ↗

Adds a builtin to this database. The function must not already exist.

(Function fn)

Source from the content-addressed store, hash-verified

456 * Adds a builtin to this database. The function must not already exist.
457 */
458 public void addBuiltin(Function fn) {
459 Preconditions.checkState(isSystemDb());
460 Preconditions.checkState(fn != null);
461 Preconditions.checkState(getFunction(fn, Function.CompareMode.IS_IDENTICAL) == null);
462 addFunction(fn, false);
463 }
464
465 /**
466 * Returns a map of functionNames to list of (overloaded) functions with that name.

Callers 14

initAggregateBuiltinsMethod · 0.95
addScalarBuiltinMethod · 0.95
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
initBuiltinsMethod · 0.80
addLegacyUDFsMethod · 0.80
addGenericUDFsMethod · 0.80

Calls 3

isSystemDbMethod · 0.95
getFunctionMethod · 0.95
addFunctionMethod · 0.95

Tested by

no test coverage detected