Specifies methods to access data stored in files.
More...
template<typename FeatureManager, typename SummaryStatisticsType = DAAL_SUMMARY_STATISTICS_TYPE>
class daal::data_management::interface1::CsvDataSource< FeatureManager, SummaryStatisticsType >
- Template Parameters
-
FeatureManager | The type of feature manager that specifies how to extract numerical data from CSV |
SummaryStatisticsType | The floating point type to compute summary statics for numeric table |
Main constructor for a Data Source
- Parameters
-
[in] | doAllocateNumericTable | Flag that specifies whether a Numeric Table associated with a File Data Source is allocated inside the Data Source |
[in] | doCreateDictionaryFromContext | Flag that specifies whether a Data Dictionary is created from the context of the File Data Source |
[in] | initialMaxRows | Initial value of maximum number of rows in Numeric Table allocated in loadDataBlock() method |
Main constructor for a Data Source
- Parameters
-
[in] | options | Options of data source |
[in] | initialMaxRows | Initial value of maximum number of rows in Numeric Table allocated in loadDataBlock() method |
services::Status createDictionaryFromContext |
( |
| ) |
|
|
inlinevirtual |
FeatureManager& getFeatureManager |
( |
| ) |
|
|
inline |
Returns a feature manager associated with a File Data Source
size_t getNumberOfAvailableRows |
( |
| ) |
|
|
inlinevirtual |
Returns the number of rows available in a Data Source
- Returns
- Number of rows
Implements DataSourceIface.
size_t getNumericTableNumberOfColumns |
( |
| ) |
|
|
inlinevirtual |
Returns the number of columns in a Numeric Table associated with a Data Source
- Returns
- Number of columns
Reimplemented from DataSource.
Loads a data block into a provided Numeric Table
- Parameters
-
[in] | nt | Pointer to the Numeric Table |
Implements DataSourceIface.
Loads a data block of a specified size into a provided Numeric Table
- Parameters
-
[in] | maxRows | Maximum number of rows to load from a Data Source into the Numeric Table |
[in] | nt | Pointer to the Numeric Table |
Implements DataSourceIface.
size_t loadDataBlock |
( |
size_t |
maxRows, |
|
|
size_t |
rowOffset, |
|
|
size_t |
fullRows, |
|
|
NumericTable * |
nt |
|
) |
| |
|
inlinevirtual |
Loads a data block of a specified size into an internally allocated Numeric Table
- Parameters
-
[in] | maxRows | Maximum number of rows to load from a Data Source into the Numeric Table |
[in] | rowOffset | Write data starting from rowOffset row |
[in] | fullRows | Maximum number of rows to allocate in the Numeric Table |
[in] | nt | Pointer to the Numeric Table |
Implements DataSourceIface.
Loads a data block into an internally allocated Numeric Table
Implements DataSourceIface.
size_t loadDataBlock |
( |
size_t |
maxRows | ) |
|
|
inlinevirtual |
Loads a data block of a specified size into an internally allocated Numeric Table
- Parameters
-
[in] | maxRows | Maximum number of rows to load from a Data Source into the Numeric Table |
Implements DataSourceIface.
size_t loadDataBlock |
( |
size_t |
maxRows, |
|
|
size_t |
rowOffset, |
|
|
size_t |
fullRows |
|
) |
| |
|
inlinevirtual |
Loads a data block of a specified size into an internally allocated Numeric Table
- Parameters
-
[in] | maxRows | Maximum number of rows to load from a Data Source into the Numeric Table |
[in] | rowOffset | Write data starting from rowOffset row |
[in] | fullRows | Maximum number of rows to allocate in the Numeric Table |
Implements DataSourceIface.
The documentation for this class was generated from the following file: