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

List of all members
DataSource Class Reference

Implements the abstract DataSourceIface interface. More...

template<typename NumericTableType >
services::Status allocateNumericTableImpl (services::SharedPtr< NumericTableType > &nt)
 
template<typename FPType >
services::Status allocateNumericTableImpl (services::SharedPtr< HomogenNumericTable< FPType > > &nt)
 

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

Member Function Documentation

services::Status allocateNumericTableImpl ( services::SharedPtr< NumericTableType > &  nt)
inlineprotected

Allocates a Numeric Table that corresponds to the template type

Template Parameters
NumericTableType- Numeric Table type.
Parameters
nt- Pointer to the allocated Numeric Table
Returns
- Allocation status: True if the table is allocated, false otherwise.
services::Status allocateNumericTableImpl ( services::SharedPtr< HomogenNumericTable< FPType > > &  nt)
inlineprotected

Allocates a homogeneous Numeric Table that corresponds to the template type

Template Parameters
FPType- Type of the homogeneous Numeric Table
Parameters
nt- Pointer to the allocated Numeric Table
Returns
- Allocation status: True if the table is allocated, false otherwise.
services::Status checkDictionary ( )
inlineprotected

Checks a Data Dictionary

services::Status checkNumericTable ( )
inlineprotected

Checks a Numeric Table

services::Status createDictionaryFromContext ( )
inlinevirtual
DAAL_DEPRECATED_VIRTUAL DataSourceDictionary* getDictionary ( )
inlinevirtual

Returns a pointer to a data dictionary

Returns
Pointer to the Data Dictionary

Implements DataSourceIface.

DataSourceDictionaryPtr getDictionarySharedPtr ( )
inlinevirtual

Returns a shared pointer to a data dictionary

Returns
Shared pointer to the Data Dictionary

Implements DataSourceIface.

DAAL_DEPRECATED services::SharedPtr<services::ErrorCollection> getErrors ( )
inline

For backward compatibility. Returns errors stored on the object

Returns
Errors stored on the object
Deprecated:
This item will be removed in a future release.
size_t getNumberOfColumns ( )
inlinevirtual

Returns the number of columns in a Data Source

Returns
Number of columns

Implements DataSourceIface.

NumericTablePtr getNumericTable ( )
inlinevirtual

Returns a pointer to a Numeric Table associated with a Data Source

Returns
Pointer to the Numeric Table

Implements DataSourceIface.

virtual size_t getNumericTableNumberOfColumns ( )
inlinevirtual

Returns the number of columns in a Numeric Table associated with a Data Source

Returns
Number of columns

Implements DataSourceIface.

Reimplemented in CsvDataSource< FeatureManager, SummaryStatisticsType >.

size_t loadDataBlock ( size_t  maxRows)
inlinevirtual

Loads a data block of a specified size into an internally allocated Numeric Table

Parameters
[in]maxRowsMaximum number of rows to load from a Data Source into the Numeric Table

Implements DataSourceIface.

Reimplemented in ODBCDataSource< FeatureManager, SummaryStatisticsType >, and KDBDataSource< _featureManager, summaryStatisticsType >.

size_t loadDataBlock ( size_t  maxRows,
NumericTable nt 
)
inlinevirtual

Loads a data block of a specified size into a provided Numeric Table

Parameters
[in]maxRowsMaximum number of rows to load from a Data Source into the Numeric Table
[in]ntPointer to the Numeric Table

Implements DataSourceIface.

Reimplemented in ODBCDataSource< FeatureManager, SummaryStatisticsType >, and KDBDataSource< _featureManager, summaryStatisticsType >.

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]maxRowsMaximum number of rows to load from a Data Source into the Numeric Table
[in]rowOffsetWrite data starting from rowOffset row
[in]fullRowsMaximum number of rows to allocate in 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]maxRowsMaximum number of rows to load from a Data Source into the Numeric Table
[in]rowOffsetWrite data starting from rowOffset row
[in]fullRowsMaximum number of rows to allocate in the Numeric Table
[in]ntPointer to the Numeric Table

Implements DataSourceIface.

size_t loadDataBlock ( )
inlinevirtual

Loads a data block into an internally allocated Numeric Table

Implements DataSourceIface.

Reimplemented in ODBCDataSource< FeatureManager, SummaryStatisticsType >, and KDBDataSource< _featureManager, summaryStatisticsType >.

size_t loadDataBlock ( NumericTable nt)
inlinevirtual

Loads a data block into a provided Numeric Table

Parameters
[in]ntPointer to the Numeric Table

Implements DataSourceIface.

Reimplemented in ODBCDataSource< FeatureManager, SummaryStatisticsType >, and KDBDataSource< _featureManager, summaryStatisticsType >.

services::Status setDictionary ( DataSourceDictionary dict)
inlinevirtual

Sets a predefined Data Dictionary

Implements DataSourceIface.

services::Status status ( ) const
inline

Returns errors during the computation

Returns
Errors during the computation

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

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