Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
xgboost.data::Cache Struct Reference

Information about the cache including path and page offsets. More...

#include <sparse_page_source.h>

Public Member Functions

 Cache (bool w, std::string n, std::string fmt)
 
std::string ShardName () const
 
void Push (std::size_t n_bytes)
 Record a page with size of n_bytes.
 
auto View (std::size_t i) const
 Returns the view start and length for the i^th page.
 
void Commit ()
 Call this once the write for the cache is complete.
 

Static Public Member Functions

static std::string ShardName (std::string name, std::string format)
 

Data Fields

bool written
 
std::string name
 
std::string format
 
std::vector< std::uint64_t > offset
 

Detailed Description

Information about the cache including path and page offsets.


The documentation for this struct was generated from the following file: