JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <NumberAggregator.h>
Public Member Functions | |
NumberAggregator (const std::string &toPointer, std::vector< std::unique_ptr< IValueProvider >> &¶ms) | |
void | merge (IAggregator *other) override |
RJValue | terminate (RJMemoryPoolAlloc &alloc) override |
std::unique_ptr< IAggregator > | duplicate () const override |
void | accumulate (const RapidJsonDocument &json, RJMemoryPoolAlloc &alloc) override |
const std::string | getName () const override |
Public Member Functions inherited from joda::query::IAggregator | |
IAggregator (const std::string &toPointer, std::vector< std::unique_ptr< IValueProvider >> &¶ms) | |
IAggregator (IAggregator const &)=delete | |
void | operator= (IAggregator const &x)=delete |
virtual | ~IAggregator ()=default |
virtual const std::string & | getDestPointer () const |
virtual std::vector< std::string > | getAttributes () const |
std::string | getParameterStringRepresentation () const |
virtual std::string | toString () const |
Static Public Member Functions | |
static constexpr auto | getName_ () |
Protected Attributes | |
T::AggRep | val {} |
bool | isAggregated = false |
bool | enableArray = false |
Protected Attributes inherited from joda::query::IAggregator | |
std::string | toPointer |
std::vector< std::unique_ptr< IValueProvider > > | params |
Additional Inherited Members | |
Protected Member Functions inherited from joda::query::IAggregator | |
void | checkParamSize (unsigned int expected) |
void | checkMinParamSize (unsigned int expected) |
void | checkParamType (unsigned int i, IValueType expected) |
void | checkOptionalParamType (unsigned int i, IValueType expected) |
std::vector< std::unique_ptr< IValueProvider > > | duplicateParameters () const |
A class representing all simple single Aggregations of numbers (min/max/count/sum/sub/...)
T |
|
inline |
|
inlineoverridevirtual |
Accumulates another value. This function is called for every value once
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.
|
inlineoverridevirtual |
Duplicates the Aggregator
Implements joda::query::IAggregator.
|
inlineoverridevirtual |
Returns the name of the Aggregator
Implements joda::query::IAggregator.
|
inlinestaticconstexpr |
|
inlineoverridevirtual |
Merges the given instance with another.
other | Other instance to be merged. Has to be of same class! |
Implements joda::query::IAggregator.
|
inlineoverridevirtual |
Terminates the aggregation and collects the values
Implements joda::query::IAggregator.
|
protected |
|
protected |
|
protected |