Medial Code Documentation
|
Format specification of various data formats like SparsePage. More...
#include <sparse_page_writer.h>
Public Member Functions | |
virtual bool | Read (T *page, common::AlignedResourceReadStream *fi)=0 |
Load all the segments into page, advance fi to end of the block. | |
virtual size_t | Write (const T &page, common::AlignedFileWriteStream *fo)=0 |
save the data to fo, when a page was written. | |
Format specification of various data formats like SparsePage.
|
pure virtual |
Load all the segments into page, advance fi to end of the block.
page | The data to read page into. |
fi | the input stream of the file |
Implemented in xgboost.data::GHistIndexRawFormat, and xgboost.data::SparsePageRawFormat< T >.
|
pure virtual |
save the data to fo, when a page was written.
fo | output stream |
Implemented in xgboost.data::SparsePageRawFormat< T >, and xgboost.data::GHistIndexRawFormat.