diff options
Diffstat (limited to 'common/query.h')
-rw-r--r-- | common/query.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/query.h b/common/query.h index fd79105..9030d7c 100644 --- a/common/query.h +++ b/common/query.h | |||
@@ -234,6 +234,13 @@ public: | |||
234 | return *this; | 234 | return *this; |
235 | } | 235 | } |
236 | 236 | ||
237 | template <typename T> | ||
238 | Reduce &collect() | ||
239 | { | ||
240 | aggregators << Aggregator(QByteArray{T::name} + QByteArray{"Collected"}, Aggregator::Collect, T::name); | ||
241 | return *this; | ||
242 | } | ||
243 | |||
237 | //Reduce on property | 244 | //Reduce on property |
238 | QByteArray property; | 245 | QByteArray property; |
239 | Selector selector; | 246 | Selector selector; |