![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Aggregator implementing ARRAY_AGG; collects all non-NULL inputs into an array. More...


Public Member Functions | |
| void | add (const AggValue &x) override |
| Incorporate one input value into the running aggregate. | |
| AggValue | finalize () const override |
| Return the final aggregate result. | |
| AggregationOperator | op () const override |
| Return the aggregation operator this accumulator implements. | |
| ValueType | resultType () const override |
Return the type of the value returned by finalize(). | |
Public Member Functions inherited from StandardAgg< T > | |
| AggValue | finalize () const override |
| Return the accumulated value, or NULL if no inputs were seen. | |
| ValueType | inputType () const override |
Return the value type corresponding to T. | |
Public Member Functions inherited from Aggregator | |
| virtual | ~Aggregator ()=default |
Protected Attributes | |
| std::vector< T > | values |
| Accumulated elements. | |
Protected Attributes inherited from StandardAgg< T > | |
| T | value {} |
| Current accumulated value. | |
| bool | has = false |
true once the first non-NULL input has been seen | |
Aggregator implementing ARRAY_AGG; collects all non-NULL inputs into an array.
Definition at line 262 of file Aggregation.cpp.
Incorporate one input value into the running aggregate.
| x | Input value to add. |
Implements Aggregator.
Definition at line 268 of file Aggregation.cpp.

Return the final aggregate result.
AggValue. Implements Aggregator.
Definition at line 274 of file Aggregation.cpp.
|
inlineoverridevirtual |
Return the aggregation operator this accumulator implements.
AggregationOperator enum value for this accumulator. Implements Aggregator.
Definition at line 277 of file Aggregation.cpp.
Return the type of the value returned by finalize().
Defaults to inputType(); override when the result type differs (e.g., AVG returns FLOAT regardless of the input type).
ValueType of the value returned by finalize(). Reimplemented from Aggregator.
Definition at line 280 of file Aggregation.cpp.
|
protected |
Accumulated elements.
Definition at line 264 of file Aggregation.cpp.