@Evolving public interface FunctionCatalog extends CatalogPlugin
Modifier and Type | Method and Description |
---|---|
default boolean |
functionExists(Identifier ident)
Returns true if the function exists, false otherwise.
|
Identifier[] |
listFunctions(String[] namespace)
List the functions in a namespace from the catalog.
|
UnboundFunction |
loadFunction(Identifier ident)
Load a function by
identifier from the catalog. |
defaultNamespace, initialize, name
Identifier[] listFunctions(String[] namespace) throws org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
If there are no functions in the namespace, implementations should return an empty array.
namespace
- a multi-part namespaceorg.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
- If the namespace does not exist (optional).UnboundFunction loadFunction(Identifier ident) throws org.apache.spark.sql.catalyst.analysis.NoSuchFunctionException
identifier
from the catalog.ident
- a function identifierorg.apache.spark.sql.catalyst.analysis.NoSuchFunctionException
- If the function doesn't existdefault boolean functionExists(Identifier ident)