C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
StringDataSource< FeatureManager, SummaryStatisticsType > Class Template Reference

Specifies methods to access data stored in byte arrays in the C-string format. More...

Additional Inherited Members

- Public Types inherited from DataSourceIface
enum  DataSourceStatus { readyForLoad = 1, waitingForRows = 2, endOfData = 3, notReady = 4 }
 Specifies the status of the Data Source. More...
 
enum  DictionaryCreationFlag { notDictionaryFromContext = 1, doDictionaryFromContext = 2 }
 Specifies whether a Data Dictionary is created from the context of a Data Source. More...
 
enum  NumericTableAllocationFlag { notAllocateNumericTable = 1, doAllocateNumericTable = 2 }
 Specifies whether a Numeric Table is allocated inside of the Data Source object. More...
 

Class Declaration

template<typename FeatureManager, typename SummaryStatisticsType = DAAL_SUMMARY_STATISTICS_TYPE>
class daal::data_management::interface1::StringDataSource< FeatureManager, SummaryStatisticsType >

Template Parameters
_featureManagerFeatureManager used to get numeric data from file strings

Constructor & Destructor Documentation

StringDataSource ( const byte *  data,
DataSourceIface::NumericTableAllocationFlag  doAllocateNumericTable = DataSource::notAllocateNumericTable,
DataSourceIface::DictionaryCreationFlag  doCreateDictionaryFromContext = DataSource::notDictionaryFromContext,
size_t  initialMaxRows = 10 
)
inline

Main constructor for a Data Source

Parameters
[in]dataByte array in the C-string format
[in]doAllocateNumericTableFlag that specifies whether a Numeric Table associated with a File Data Source is allocated inside the Data Source
[in]doCreateDictionaryFromContextFlag that specifies whether a Data Dictionary is created from the context of the File Data Source
[in]initialMaxRowsInitial value of maximum number of rows in Numeric Table allocated in loadDataBlock() method

Member Function Documentation

services::Status createDictionaryFromContext ( )
inlinevirtual

Creates a Data Dictionary by extracting information from a Data Source

Reimplemented from CsvDataSource< FeatureManager, SummaryStatisticsType >.

const byte* getData ( )
inline

Gets data source string data

Returns
Byte array in the C-string format
DataSourceIface::DataSourceStatus getStatus ( )
inlinevirtual

Returns the status of a Data Source

Returns
Status of the Data Source

Implements DataSourceIface.

void resetData ( )
inline

Resets a data source string

void setData ( const byte *  data)
inline

Sets a new string as a source for data

Parameters
[in]dataByte array in the C-string format

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

For more complete information about compiler optimizations, see our Optimization Notice.