Qore DataProvider Module Reference  1.2.1
AbstractDataProcessor.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29 
31 namespace DataProvider {
34 
35 public:
36 protected:
38  *hash<auto> thread_local_data;
39 
41  *list<string> thread_local_data_keys;
42 
43 public:
44 
47 
48 
50 
55 
56 
58 
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:
107 public:
108 
109 
111 
113 protected:
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 };
*AbstractDataProviderType getExpectedTypeImpl()
Returns the expected type of data to be submitted, if available.
*hash< auto > thread_local_data
Thread-local data to set before running the processor.
Definition: AbstractDataProcessor.qc.dox.h:38
submit(code enqueue, auto _data)
Submits the data for processing.
AbstractDataProviderType getExpectedType()
Returns the expected type of data to be submitted, if available.
*AbstractDataProviderType getReturnTypeImpl()
Returns the type of data that will be returned, if available.
flushImpl(code enqueue)
This method is called for each pipeline element to permit flushing of any pending data at the end of ...
Defines an abstract class for accepting data and outputting optionally transformed or filtered data...
Definition: AbstractDataProcessor.qc.dox.h:33
*list< string > thread_local_data_keys
Thread-local data keys from thread_local_data.
Definition: AbstractDataProcessor.qc.dox.h:41
abstract bool supportsBulkApiImpl()
Returns True if the data processor supports bulk operation.
flush(code enqueue)
This method is called for each pipeline element to permit flushing of any pending data at the end of ...
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
abstract submitImpl(code enqueue, auto _data)
Submits the data for processing.
bool supportsBulkApi()
Returns True if the data processor supports bulk operation.
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
setThreadLocalData(*hash< auto > thread_local_data)
Sets thread-local data to set before running the processor.
AbstractDataProviderType getReturnType()
Returns the type of data that will be returned, if available.