[DATA] Isolate the format of page file

This commit is contained in:
tqchen
2016-01-11 22:49:13 -08:00
parent a662340fda
commit 36c389ac46
8 changed files with 235 additions and 122 deletions

View File

@@ -75,6 +75,8 @@ class SparsePageSource : public DataSource {
std::string cache_prefix_;
/*! \brief file pointer to the row blob file. */
std::unique_ptr<dmlc::SeekStream> fi_;
/*! \brief Sparse page format file. */
std::unique_ptr<SparsePage::Format> format_;
/*! \brief internal prefetcher. */
dmlc::ThreadedIter<SparsePage> prefetcher_;
};