#include <GroupAggregator.h>
◆ NumAggregators
◆ StringAggregators
◆ GroupAggregator()
joda::query::GroupAggregator::GroupAggregator |
( |
const std::string & |
toPointer, |
|
|
std::unique_ptr< IValueProvider > && |
groupBy, |
|
|
std::unique_ptr< IAggregator > && |
agg, |
|
|
std::string |
groupAs = "" |
|
) |
| |
◆ ~GroupAggregator()
joda::query::GroupAggregator::~GroupAggregator |
( |
| ) |
|
|
overridedefault |
◆ accumulate()
Accumulates another value. This function is called for every value once
- Parameters
-
json | The Rapidjsondocument to retrieve values from. (Or an empty RapidJsonDocument for const values) |
alloc | A MemoryPoolAllocator to create the values with |
Implements joda::query::IAggregator.
◆ duplicate()
◆ getAttributes()
std::vector< std::string > joda::query::GroupAggregator::getAttributes |
( |
| ) |
const |
|
overridevirtual |
◆ getGroupName()
const std::string joda::query::GroupAggregator::getGroupName |
( |
| ) |
const |
|
protected |
◆ getName()
const std::string joda::query::GroupAggregator::getName |
( |
| ) |
const |
|
overridevirtual |
◆ getName_()
static constexpr auto joda::query::GroupAggregator::getName_ |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ getValueName()
const std::string joda::query::GroupAggregator::getValueName |
( |
| ) |
const |
|
protected |
◆ merge()
void joda::query::GroupAggregator::merge |
( |
IAggregator * |
other | ) |
|
|
overridevirtual |
Merges the given instance with another.
- Parameters
-
other | Other instance to be merged. Has to be of same class! |
Implements joda::query::IAggregator.
◆ setGroupAs()
void joda::query::GroupAggregator::setGroupAs |
( |
const std::string & |
groupAs | ) |
|
◆ terminate()
Terminates the aggregation and collects the values
- Returns
- Collected values (GroupKey,Value)
Implements joda::query::IAggregator.
◆ toString()
std::string joda::query::GroupAggregator::toString |
( |
| ) |
const |
|
overridevirtual |
◆ falseAgg
std::unique_ptr<IAggregator> joda::query::GroupAggregator::falseAgg = nullptr |
|
protected |
◆ groupAs
std::string joda::query::GroupAggregator::groupAs |
|
protected |
◆ groupBy
const std::unique_ptr<IValueProvider> joda::query::GroupAggregator::groupBy |
|
protected |
◆ numGroups
◆ protoAgg
const std::unique_ptr<IAggregator> joda::query::GroupAggregator::protoAgg |
|
protected |
◆ stringGroups
◆ trueAgg
std::unique_ptr<IAggregator> joda::query::GroupAggregator::trueAgg = nullptr |
|
protected |
The documentation for this class was generated from the following files:
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/query/aggregate/include/joda/query/aggregation/GroupAggregator.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/query/aggregate/src/GroupAggregator.cpp