Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
xgboost.data::FileAdapter Class Reference

FileAdapter wraps dmlc::parser to read files and provide access in a common interface. More...

#include <adapter.h>

Inheritance diagram for xgboost.data::FileAdapter:
dmlc::DataIter< FileAdapterBatch >

Public Member Functions

 FileAdapter (dmlc::Parser< uint32_t > *parser)
 
const FileAdapterBatchValue () const override
 get current data
 
void BeforeFirst () override
 set before first of the item
 
bool Next () override
 move to next item
 
size_t NumRows () const
 
size_t NumColumns () const
 

Detailed Description

FileAdapter wraps dmlc::parser to read files and provide access in a common interface.

Member Function Documentation

◆ BeforeFirst()

void xgboost.data::FileAdapter::BeforeFirst ( void  )
inlineoverridevirtual

set before first of the item

Implements dmlc::DataIter< FileAdapterBatch >.

◆ Next()

bool xgboost.data::FileAdapter::Next ( void  )
inlineoverridevirtual

move to next item

Implements dmlc::DataIter< FileAdapterBatch >.

◆ Value()

const FileAdapterBatch & xgboost.data::FileAdapter::Value ( void  ) const
inlineoverridevirtual

get current data

Implements dmlc::DataIter< FileAdapterBatch >.


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