关注 spark技术分享,
撸spark源码 玩spark最佳实践

Catalog — Metastore Management Interface

Catalog — Metastore Management Interface

Catalog is the interface for managing a metastore (aka metadata catalog) of relational entities (e.g. database(s), tables, functions, table columns and temporary views).

Catalog is available using SparkSession.catalog property.

Table 1. Catalog Contract
Method Description

cacheTable

Caches the specified table in memory

Used for SQL’s CACHE TABLE and AlterTableRenameCommand command.

clearCache

createTable

currentDatabase

databaseExists

dropGlobalTempView

dropTempView

functionExists

getDatabase

getFunction

getTable

isCached

listColumns

listDatabases

listFunctions

listTables

recoverPartitions

refreshByPath

refreshTable

setCurrentDatabase

tableExists

uncacheTable

Note
CatalogImpl is the one and only known implementation of the Catalog Contract in Apache Spark.
赞(0) 打赏
未经允许不得转载:spark技术分享 » Catalog — Metastore Management Interface
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏