| Qore DataProvider Module Reference 3.2.2

Loading...
Searching...
No Matches
AbstractDataProcessor.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
25// assume local scope for variables, do not use "$" signs
26// require type definitions everywhere
28// enable all warnings
29
31 namespace DataProvider {
33 class AbstractDataProcessor {
34
35 public:
36 protected:
38 *hash<auto> thread_local_data;
39
41 *list<string> thread_local_data_keys;
42
43 public:
44
46 setThreadLocalData(*hash<auto> thread_local_data);
47
48
50
54 AbstractDataProviderType getExpectedType();
55
56
58
62 AbstractDataProviderType getReturnType();
63
64
66
70 bool supportsBulkApi();
71
72
74
86 submit(code enqueue, auto _data);
87
88
90
99 flush(code enqueue);
100
101
103
105 protected:
106 *AbstractDataProviderType getExpectedTypeImpl();
107 public:
108
109
111
113 protected:
114 *AbstractDataProviderType getReturnTypeImpl();
115 public:
116
117
119
130 protected:
131 flushImpl(code enqueue);
132 public:
133
134
136
142 protected:
143 abstract submitImpl(code enqueue, auto _data);
144 public:
145
147
151 protected:
152 abstract bool supportsBulkApiImpl();
153 public:
154};
155};
DataProvider::AbstractDataProcessor
Defines an abstract class for accepting data and outputting optionally transformed or filtered data.
Definition AbstractDataProcessor.qc.dox.h:33
DataProvider::AbstractDataProcessor::submit
submit(code enqueue, auto _data)
Submits the data for processing.
DataProvider::AbstractDataProcessor::getReturnType
AbstractDataProviderType getReturnType()
Returns the type of data that will be returned, if available.
DataProvider::AbstractDataProcessor::submitImpl
abstract submitImpl(code enqueue, auto _data)
Submits the data for processing.
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::getExpectedType
AbstractDataProviderType getExpectedType()
Returns the expected type of data to be submitted, if available.
DataProvider::AbstractDataProcessor::supportsBulkApi
bool supportsBulkApi()
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::AbstractDataProcessor::supportsBulkApiImpl
abstract bool supportsBulkApiImpl()
Returns True if the data processor supports bulk operation.
DataProvider::AbstractDataProcessor::getReturnTypeImpl
*AbstractDataProviderType getReturnTypeImpl()
Returns the type of data that will be returned, if available.
DataProvider::AbstractDataProcessor::getExpectedTypeImpl
*AbstractDataProviderType getExpectedTypeImpl()
Returns the expected type of data to be submitted, if available.
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::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::setThreadLocalData
setThreadLocalData(*hash< auto > thread_local_data)
Sets thread-local data to set before running the processor.
DataProvider::AbstractDataProviderType
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27