summaryrefslogtreecommitdiffstats
path: root/common/query.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/query.h')
-rw-r--r--common/query.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/query.h b/common/query.h
index 1e7b41d..fd79105 100644
--- a/common/query.h
+++ b/common/query.h
@@ -247,14 +247,19 @@ public:
247 //Potentially pass-in an identifier under which the result will be available in the result set. 247 //Potentially pass-in an identifier under which the result will be available in the result set.
248 }; 248 };
249 249
250 template <typename T> 250 Reduce &reduce(const QByteArray &name, const Reduce::Selector &s)
251 Reduce &reduce(const Reduce::Selector &s)
252 { 251 {
253 auto reduction = QSharedPointer<Reduce>::create(T::name, s); 252 auto reduction = QSharedPointer<Reduce>::create(name, s);
254 mFilterStages << reduction; 253 mFilterStages << reduction;
255 return *reduction; 254 return *reduction;
256 } 255 }
257 256
257 template <typename T>
258 Reduce &reduce(const Reduce::Selector &s)
259 {
260 return reduce(T::name, s);
261 }
262
258 /** 263 /**
259 * "Bloom" on a property. 264 * "Bloom" on a property.
260 * 265 *