diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-11 12:02:58 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-13 19:42:39 +0100 |
commit | 1259b236704e790fa1284a63ec537525bce23841 (patch) | |
tree | 85cd0491e56d2f604cc8aa291a49d20f8f73c684 /common/queryrunner.h | |
parent | b4bd3932aa2a8e841ed204b341bcbf65ba59c5b2 (diff) | |
download | sink-1259b236704e790fa1284a63ec537525bce23841.tar.gz sink-1259b236704e790fa1284a63ec537525bce23841.zip |
Fixed reduction updates with stateful query.
Some filters need to maintain state between runs in order to be able to
emit only what has changed. This now also make reduction work for live
queries.
Diffstat (limited to 'common/queryrunner.h')
-rw-r--r-- | common/queryrunner.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/queryrunner.h b/common/queryrunner.h index 66dc68f..f5c7ead 100644 --- a/common/queryrunner.h +++ b/common/queryrunner.h | |||
@@ -24,6 +24,7 @@ | |||
24 | #include "resultprovider.h" | 24 | #include "resultprovider.h" |
25 | #include "query.h" | 25 | #include "query.h" |
26 | #include "log.h" | 26 | #include "log.h" |
27 | #include "datastorequery.h" | ||
27 | 28 | ||
28 | /** | 29 | /** |
29 | * Base clase because you can't have the Q_OBJECT macro in template classes | 30 | * Base clase because you can't have the Q_OBJECT macro in template classes |
@@ -101,4 +102,7 @@ private: | |||
101 | int mBatchSize; | 102 | int mBatchSize; |
102 | QObject guard; | 103 | QObject guard; |
103 | Sink::Log::Context mLogCtx; | 104 | Sink::Log::Context mLogCtx; |
105 | DataStoreQuery::State::Ptr mQueryState; | ||
106 | bool mInitialQueryComplete = false; | ||
107 | bool mQueryInProgress = false; | ||
104 | }; | 108 | }; |