Interface CatalogExtension
- All Superinterfaces:
CatalogPlugin,FunctionCatalog,SupportsNamespaces,TableCatalog
- All Known Implementing Classes:
DelegatingCatalogExtension
@Evolving
public interface CatalogExtension
extends TableCatalog, FunctionCatalog, SupportsNamespaces
An API to extend the Spark built-in session catalog. Implementation can get the built-in session
catalog from
setDelegateCatalog(CatalogPlugin), implement catalog functions with
some custom logic and call the built-in session catalog at the end. For example, they can
implement createTable, do something else before calling createTable of the
built-in session catalog.- Since:
- 3.0.0
-
Field Summary
Fields inherited from interface org.apache.spark.sql.connector.catalog.SupportsNamespaces
PROP_COLLATION, PROP_COMMENT, PROP_LOCATION, PROP_OWNERFields inherited from interface org.apache.spark.sql.connector.catalog.TableCatalog
OPTION_PREFIX, PROP_COLLATION, PROP_COMMENT, PROP_EXTERNAL, PROP_IS_MANAGED_LOCATION, PROP_LOCATION, PROP_OWNER, PROP_PROVIDER, PROP_TABLE_TYPE -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDelegateCatalog(CatalogPlugin delegate) This will be called only once by Spark to pass in the Spark built-in session catalog, afterCatalogPlugin.initialize(String, CaseInsensitiveStringMap)is called.Methods inherited from interface org.apache.spark.sql.connector.catalog.CatalogPlugin
defaultNamespace, initialize, nameMethods inherited from interface org.apache.spark.sql.connector.catalog.FunctionCatalog
functionExists, listFunctions, loadFunctionMethods inherited from interface org.apache.spark.sql.connector.catalog.SupportsNamespaces
alterNamespace, createNamespace, dropNamespace, listNamespaces, listNamespaces, loadNamespaceMetadata, namespaceExistsMethods inherited from interface org.apache.spark.sql.connector.catalog.TableCatalog
alterTable, capabilities, createTable, createTable, createTable, dropTable, invalidateTable, listTables, listTableSummaries, loadTable, loadTable, loadTable, loadTable, purgeTable, renameTable, tableExists, useNullableQuerySchema
-
Method Details
-
setDelegateCatalog
This will be called only once by Spark to pass in the Spark built-in session catalog, afterCatalogPlugin.initialize(String, CaseInsensitiveStringMap)is called.
-