cacheQuery(
query: Dataset[_],
tableName: Option[String] = None,
storageLevel: StorageLevel = MEMORY_AND_DISK): Unit
CacheManager
Caching Logical Plan (cacheQuery method)
cacheQuery
obtains analyzed logical plan and saves it as a InMemoryRelation
in the internal cachedData
cached queries collection.
If however the query has already been cached, you should instead see the following WARN message in the logs:
WARN CacheManager: Asked to cache already cached data.