|
Medial Code Documentation
|
Base class for all page sources. More...
#include <sparse_page_source.h>
Public Member Functions | |
| SparsePageSourceImpl (float missing, int nthreads, bst_feature_t n_features, uint32_t n_batches, std::shared_ptr< Cache > cache) | |
| SparsePageSourceImpl (SparsePageSourceImpl const &that)=delete | |
| uint32_t | Iter () const |
| const S & | operator* () const override |
| std::shared_ptr< S const > | Page () const override |
| bool | AtEnd () const override |
| virtual void | Reset () |
Public Member Functions inherited from xgboost::BatchIteratorImpl< S > | |
| virtual BatchIteratorImpl & | operator++ ()=0 |
Protected Types | |
| using | Ring = std::vector< std::future< std::shared_ptr< S > > > |
Protected Member Functions | |
| bool | ReadCache () |
| void | WriteCache () |
| virtual void | Fetch ()=0 |
Protected Attributes | |
| std::mutex | single_threaded_ |
| std::shared_ptr< S > | page_ |
| bool | at_end_ {false} |
| float | missing_ |
| std::int32_t | nthreads_ |
| bst_feature_t | n_features_ |
| std::uint32_t | count_ {0} |
| std::uint32_t | n_batches_ {0} |
| std::shared_ptr< Cache > | cache_info_ |
| std::unique_ptr< Ring > | ring_ {new Ring} |
| ExceHandler | exce_ |
| common::Monitor | monitor_ |
Additional Inherited Members | |
Public Types inherited from xgboost::BatchIteratorImpl< S > | |
| using | iterator_category = std::forward_iterator_tag |
Base class for all page sources.
Handles fetching, writing, and iteration.
|
inlineoverridevirtual |
Implements xgboost::BatchIteratorImpl< S >.
|
inlineoverridevirtual |
Implements xgboost::BatchIteratorImpl< S >.
|
inlineoverridevirtual |
Implements xgboost::BatchIteratorImpl< S >.