public class SparkFunctionCatalog
extends java.lang.Object
Constructor and Description |
---|
SparkFunctionCatalog() |
Modifier and Type | Method and Description |
---|---|
static SparkFunctionCatalog |
get() |
void |
initialize(java.lang.String catalogName,
org.apache.spark.sql.util.CaseInsensitiveStringMap options) |
default boolean |
isExistingNamespace(java.lang.String[] namespace) |
default boolean |
isFunctionNamespace(java.lang.String[] namespace) |
default org.apache.spark.sql.connector.catalog.Identifier[] |
listFunctions(java.lang.String[] namespace) |
default org.apache.spark.sql.connector.catalog.functions.UnboundFunction |
loadFunction(org.apache.spark.sql.connector.catalog.Identifier ident) |
java.lang.String |
name() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static SparkFunctionCatalog get()
public void initialize(java.lang.String catalogName, org.apache.spark.sql.util.CaseInsensitiveStringMap options)
public java.lang.String name()
public boolean isFunctionNamespace(java.lang.String[] namespace)
public boolean isExistingNamespace(java.lang.String[] namespace)
public org.apache.spark.sql.connector.catalog.Identifier[] listFunctions(java.lang.String[] namespace) throws org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
listFunctions
in interface org.apache.spark.sql.connector.catalog.FunctionCatalog
org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
public org.apache.spark.sql.connector.catalog.functions.UnboundFunction loadFunction(org.apache.spark.sql.connector.catalog.Identifier ident) throws org.apache.spark.sql.catalyst.analysis.NoSuchFunctionException
loadFunction
in interface org.apache.spark.sql.connector.catalog.FunctionCatalog
org.apache.spark.sql.catalyst.analysis.NoSuchFunctionException