Class ConcatCacheData

Inheritance Relationships

Base Type

Class Documentation

class ral::cache::ConcatCacheData : public ral::cache::CacheData

Public Functions

ConcatCacheData(std::vector<std::unique_ptr<CacheData>> cache_datas, const std::vector<std::string> &col_names, const std::vector<cudf::data_type> &schema)

Constructor

Parameters
  • table: The cache_datas that will be concatenated when decached.

  • col_names: The names of the columns in the dataframe.

  • schema: The types of the columns in the dataframe.

virtual std::unique_ptr<ral::frame::BlazingTable> decache() override

Decaches all caches datas and concatenates them into one BlazingTable

Return

The BlazingTable that results from concatenating all cache datas.

virtual size_t sizeInBytes() const override

Get the amount of GPU memory consumed by this CacheData Having this function allows us to have one api for seeing the consumption of all the CacheData objects that are currently in Caches.

Return

The number of bytes the BlazingTable consumes.

virtual void set_names(const std::vector<std::string> &names) override

Set the names of the columns.

Parameters
  • names: a vector of the column names.

std::vector<std::unique_ptr<CacheData>> releaseCacheDatas()
inline virtual ~ConcatCacheData()

Protected Attributes

std::vector<std::unique_ptr<CacheData>> _cache_datas