AbstractDataProcessor.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DataProvider {
class AbstractDataProcessor {
public:
protected:
*hash<auto> thread_local_data;
*list<string> thread_local_data_keys;
public:
setThreadLocalData(*hash<auto> thread_local_data);
AbstractDataProviderType getExpectedType();
AbstractDataProviderType getReturnType();
bool supportsBulkApi();
submit(code enqueue, auto _data);
flush(code enqueue);
protected:
*AbstractDataProviderType getExpectedTypeImpl();
public:
protected:
*AbstractDataProviderType getReturnTypeImpl();
public:
protected:
flushImpl(code enqueue);
public:
protected:
abstract submitImpl(code enqueue, auto _data);
public:
protected:
abstract bool supportsBulkApiImpl();
public:
};
};
DataProvider::AbstractDataProcessor::getExpectedTypeImpl
*AbstractDataProviderType getExpectedTypeImpl()
Returns the expected type of data to be submitted, if available.
DataProvider::AbstractDataProcessor::thread_local_data
*hash< auto > thread_local_data
Thread-local data to set before running the processor.
Definition: AbstractDataProcessor.qc.dox.h:38
DataProvider::AbstractDataProcessor::submit
submit(code enqueue, auto _data)
Submits the data for processing.
DataProvider::AbstractDataProcessor::getExpectedType
AbstractDataProviderType getExpectedType()
Returns the expected type of data to be submitted, if available.
DataProvider::AbstractDataProcessor::getReturnTypeImpl
*AbstractDataProviderType getReturnTypeImpl()
Returns the type of data that will be returned, if available.
DataProvider::AbstractDataProcessor::flushImpl
flushImpl(code enqueue)
This method is called for each pipeline element to permit flushing of any pending data at the end of ...
DataProvider::AbstractDataProcessor
Defines an abstract class for accepting data and outputting optionally transformed or filtered data...
Definition: AbstractDataProcessor.qc.dox.h:33
DataProvider::AbstractDataProcessor::thread_local_data_keys
*list< string > thread_local_data_keys
Thread-local data keys from thread_local_data.
Definition: AbstractDataProcessor.qc.dox.h:41
DataProvider::AbstractDataProcessor::supportsBulkApiImpl
abstract bool supportsBulkApiImpl()
Returns True if the data processor supports bulk operation.
DataProvider::AbstractDataProcessor::flush
flush(code enqueue)
This method is called for each pipeline element to permit flushing of any pending data at the end of ...
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:105
DataProvider::AbstractDataProcessor::submitImpl
abstract submitImpl(code enqueue, auto _data)
Submits the data for processing.
DataProvider::AbstractDataProcessor::supportsBulkApi
bool supportsBulkApi()
Returns True if the data processor supports bulk operation.
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
DataProvider::AbstractDataProcessor::setThreadLocalData
setThreadLocalData(*hash< auto > thread_local_data)
Sets thread-local data to set before running the processor.
DataProvider::AbstractDataProcessor::getReturnType
AbstractDataProviderType getReturnType()
Returns the type of data that will be returned, if available.