Package org.apache.iceberg.spark
Class SparkFunctionCatalog
java.lang.Object
org.apache.iceberg.spark.SparkFunctionCatalog
- All Implemented Interfaces:
org.apache.spark.sql.connector.catalog.CatalogPlugin
,org.apache.spark.sql.connector.catalog.FunctionCatalog
A function catalog that can be used to resolve Iceberg functions without a metastore connection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SparkFunctionCatalog
get()
void
initialize
(String catalogName, org.apache.spark.sql.util.CaseInsensitiveStringMap options) default boolean
isExistingNamespace
(String[] namespace) default boolean
isFunctionNamespace
(String[] namespace) default org.apache.spark.sql.connector.catalog.Identifier[]
listFunctions
(String[] namespace) default org.apache.spark.sql.connector.catalog.functions.UnboundFunction
loadFunction
(org.apache.spark.sql.connector.catalog.Identifier ident) name()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.spark.sql.connector.catalog.CatalogPlugin
defaultNamespace
Methods inherited from interface org.apache.spark.sql.connector.catalog.FunctionCatalog
functionExists
-
Constructor Details
-
SparkFunctionCatalog
public SparkFunctionCatalog()
-
-
Method Details
-
get
-
initialize
public void initialize(String catalogName, org.apache.spark.sql.util.CaseInsensitiveStringMap options) - Specified by:
initialize
in interfaceorg.apache.spark.sql.connector.catalog.CatalogPlugin
-
name
- Specified by:
name
in interfaceorg.apache.spark.sql.connector.catalog.CatalogPlugin
-
isFunctionNamespace
-
isExistingNamespace
-
listFunctions
default org.apache.spark.sql.connector.catalog.Identifier[] listFunctions(String[] namespace) throws org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException - Specified by:
listFunctions
in interfaceorg.apache.spark.sql.connector.catalog.FunctionCatalog
- Throws:
org.apache.spark.sql.catalyst.analysis.NoSuchNamespaceException
-
loadFunction
default 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 - Specified by:
loadFunction
in interfaceorg.apache.spark.sql.connector.catalog.FunctionCatalog
- Throws:
org.apache.spark.sql.catalyst.analysis.NoSuchFunctionException
-