buildBuffers(): RDD[CachedBatch]
CachedRDDBuilder
CachedRDDBuilder
is created exclusively when InMemoryRelation leaf logical operator is created.
CachedRDDBuilder
uses a RDD
of CachedBatches that is either given or built internally.
CachedRDDBuilder
uses CachedBatch
data structure with the following attributes:
-
Statistics (InternalRow)
CachedRDDBuilder
uses isCachedColumnBuffersLoaded
flag that is enabled (true
) when the _cachedColumnBuffers is defined (not null
). isCachedColumnBuffersLoaded
is used exclusively when CacheManager
is requested to recacheByCondition.
CachedRDDBuilder
uses sizeInBytesStats
metric (LongAccumulator
) to buildBuffers and when InMemoryRelation
is requested to computeStats.
Creating CachedRDDBuilder Instance
CachedRDDBuilder
takes the following to be created:
CachedRDDBuilder
initializes the internal registries and counters.
buildBuffers
Internal Method
buildBuffers
…FIXME
Note
|
buildBuffers is used exclusively when CachedRDDBuilder is requested to cachedColumnBuffers.
|
clearCache
Method
clearCache(blocking: Boolean = true): Unit
clearCache
…FIXME
Note
|
clearCache is used exclusively when CacheManager is requested to clearCache, uncacheQuery, and recacheByCondition.
|