Qore DataProvider Module Reference 2.7.5
|
Data provider factory class. More...
#include <AbstractDataProviderFactory.qc.dox.h>
Public Member Methods | |
AbstractDataProvider | create (*hash< auto > options) |
Creates an object from the given constructor options. | |
AbstractDataProvider | createWithTemplate (*hash< auto > template_options, *hash< auto > options) |
Creates an object from the given constructor options. | |
Class | getClass () |
Returns the class for the data provider object. | |
list< hash< auto > > | getExampleProviderRecordOutput (data example, *hash< auto > constructor_options) |
Returns information about a data provider constructor given the example data as an argument. More... | |
list< hash< auto > > | getExampleProviderRecordOutput (InputStream example, *hash< auto > constructor_options) |
Returns information about a data provider constructor given the example data as an argument. More... | |
hash< DataProviderFactoryInfo > | getInfo () |
Returns static factory information. More... | |
hash< auto > | getInfoAsData (*bool with_type_info) |
Returns static provider information as data; no objects are returned. More... | |
string | getName () |
Returns the name of the data provider factory. | |
AbstractDataProvider | getProviderFromExample (data example, *hash< auto > constructor_options) |
Returns a data provider given the example data and constructor options as arguments. More... | |
AbstractDataProvider | getProviderFromExample (InputStream example, *hash< auto > constructor_options) |
Returns a data provider given the example data and constructor options as arguments. More... | |
hash< DataProviderInfo > | getProviderInfo () |
Returns static provider information. More... | |
Private Member Methods | |
error (string err, string fmt) | |
thrown an exception | |
abstract Class | getClassImpl () |
Returns the class for the data provider object. | |
list< hash< auto > > | getExampleProviderRecordOutputImpl (InputStream example, *hash< auto > constructor_options) |
Returns information about a data provider constructor given the example data as an argument. More... | |
abstract hash< DataProviderFactoryInfo > | getInfoImpl () |
Returns static factory information without provider_info. More... | |
string | getNameImpl () |
Returns the name of the data provider factory. | |
AbstractDataProvider | getProviderFromExampleImpl (InputStream example, *hash< auto > constructor_options) |
Returns a data provider given the example data and constructor options as arguments. More... | |
abstract hash< DataProviderInfo > | getProviderInfoImpl () |
Returns static provider information. More... | |
Data provider factory class.
list< hash< auto > > DataProvider::AbstractDataProviderFactory::getExampleProviderRecordOutput | ( | data | example, |
*hash< auto > | constructor_options | ||
) |
Returns information about a data provider constructor given the example data as an argument.
example | example data to process |
constructor_options | constructor options for the data provider |
DATA-PROVIDER-ERROR | invalid construtor options, API not supported |
list< hash< auto > > DataProvider::AbstractDataProviderFactory::getExampleProviderRecordOutput | ( | InputStream | example, |
*hash< auto > | constructor_options | ||
) |
Returns information about a data provider constructor given the example data as an argument.
example | example data to process |
constructor_options | constructor options for the data provider |
DATA-PROVIDER-ERROR | invalid construtor options, API not supported |
|
private |
Returns information about a data provider constructor given the example data as an argument.
example | example data to process |
constructor_options | constructor options for the data provider |
DATA-PROVIDER-ERROR | invalid construtor options, API not supported |
DATA-PROVIDER-ERROR
exception by default; override in subclasses to implement this method properlyhash< DataProviderFactoryInfo > DataProvider::AbstractDataProviderFactory::getInfo | ( | ) |
Returns static factory information.
hash< auto > DataProvider::AbstractDataProviderFactory::getInfoAsData | ( | *bool | with_type_info | ) |
Returns static provider information as data; no objects are returned.
with_type_info | the raw info with objects describing the types |
|
privatepure virtual |
Returns static factory information without provider_info.
Implemented in DataProvider::NullDataProviderFactory.
AbstractDataProvider DataProvider::AbstractDataProviderFactory::getProviderFromExample | ( | data | example, |
*hash< auto > | constructor_options | ||
) |
Returns a data provider given the example data and constructor options as arguments.
example | example data to process |
constructor_options | constructor options for the data provider |
DATA-PROVIDER-ERROR | invalid construtor options, API not supported |
AbstractDataProvider DataProvider::AbstractDataProviderFactory::getProviderFromExample | ( | InputStream | example, |
*hash< auto > | constructor_options | ||
) |
Returns a data provider given the example data and constructor options as arguments.
example | example data to process |
constructor_options | constructor options for the data provider |
DATA-PROVIDER-ERROR | invalid construtor options, API not supported |
|
private |
Returns a data provider given the example data and constructor options as arguments.
example | example data to process |
constructor_options | constructor options for the data provider |
DATA-PROVIDER-ERROR | invalid construtor options, API not supported |
DATA-PROVIDER-ERROR
exception by default; override in subclasses to implement this method properlyhash< DataProviderInfo > DataProvider::AbstractDataProviderFactory::getProviderInfo | ( | ) |
Returns static provider information.
|
privatepure virtual |
Returns static provider information.
Implemented in DataProvider::NullDataProviderFactory.