Connects to data sources with the ODBC API.
More...
template<typename FeatureManager, typename SummaryStatisticsType = DAAL_SUMMARY_STATISTICS_TYPE>
class daal::data_management::interface1::ODBCDataSource< FeatureManager, SummaryStatisticsType >
- Template Parameters
-
FeatureManager | Type of a data source, supports only SQLFeatureManager |
SummaryStatisticsType | The floating point type to compute summary statics for numeric table |
Constructor for the ODBCDataSource class
- Parameters
-
[in] | dbname | Data Source Name as configured in settings of the ODBC driver |
[in] | tableName | Name of a table to export from a data source |
[in] | userName | (optional) Username for the data source |
[in] | password | (optional) Password for the Username in the data source |
[in] | doAllocateNumericTable | (optional) Flag that specifies whether a Numeric Table associated with an ODBC Data Source is allocated inside the Data Source |
[in] | doCreateDictionaryFromContext | (optional) Flag that specifies whether a Data Dictionary is created from the context of the ODBC Data Source |
[in] | initialMaxRows | Initial value of maximum number of rows in Numeric Table allocated in loadDataBlock() method |
ODBCDataSource |
( |
const std::string & |
dbname, |
|
|
const std::string & |
tableName, |
|
|
const std::string & |
userName, |
|
|
const std::string & |
password, |
|
|
const ODBCDataSourceOptions & |
options, |
|
|
size_t |
initialMaxRows = 10 |
|
) |
| |
|
inline |
Constructor for the ODBCDataSource class
- Parameters
-
[in] | dbname | Data Source Name as configured in settings of the ODBC driver |
[in] | tableName | Name of a table to export from a data source |
[in] | userName | Username for the data source |
[in] | password | Password for the Username in the data source |
[in] | options | The options of ODBC Data Source |
[in] | initialMaxRows | Initial value of maximum number of rows in Numeric Table allocated in loadDataBlock() method |
Constructor for the ODBCDataSource class
- Parameters
-
[in] | connectionString | The connection string to ODBC Driver |
[in] | options | The options of ODBC Data Source |
[in] | initialMaxRows | Initial value of maximum number of rows in Numeric Table allocated in loadDataBlock() method |
services::Status createDictionaryFromContext |
( |
| ) |
|
|
inlinevirtual |
Creates a Data Dictionary by extracting information from a Data Source
Reimplemented from DataSource.
services::Status freeHandles |
( |
| ) |
|
|
inline |
Frees ODBC connection handles
size_t getNumberOfAvailableRows |
( |
| ) |
|
|
inlinevirtual |
Returns the number of rows available in a Data Source
- Returns
- Number of rows
Implements DataSourceIface.
Returns the status of a Data Source
- Returns
- Status of the Data Source
Implements DataSourceIface.
virtual 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 |
Reimplemented from DataSource.
virtual size_t loadDataBlock |
( |
size_t |
maxRows, |
|
|
NumericTable * |
nt |
|
) |
| |
|
inlinevirtual |
Loads a data block of a specified size into an externally allocated Numeric Table
- Parameters
-
[in] | maxRows | Maximum number of rows to load from a Data Source into the Numeric Table |
| nt | Externally allocated Numeric Table |
- Returns
- Actual number of rows loaded from the Data Source
Reimplemented from DataSource.
Loads a data block into an internally allocated Numeric Table
Reimplemented from DataSource.
Loads a data block into a provided Numeric Table
- Parameters
-
[in] | nt | Pointer to the Numeric Table |
Reimplemented from DataSource.
The documentation for this class was generated from the following file: