scala> :type spark
org.apache.spark.sql.SparkSession
scala> :type spark.catalog
org.apache.spark.sql.catalog.Catalog
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.
Method | Description |
---|---|
|
Caches the specified table in memory Used for SQL’s CACHE TABLE and |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note
|
CatalogImpl is the one and only known implementation of the Catalog Contract in Apache Spark. |