![]() |
ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
|
Aggregator implementing SUM for integer or float types. More...


Public Member Functions | |
| void | add (const AggValue &x) override |
| Incorporate one input value into the running aggregate. | |
| AggregationOperator | op () const override |
| Return the aggregation operator this accumulator implements. | |
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 |
| virtual ValueType | resultType () const |
Return the type of the value returned by finalize(). | |
Additional Inherited Members | |
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 SUM for integer or float types.
Definition at line 117 of file Aggregation.cpp.
Incorporate one input value into the running aggregate.
| x | Input value to add. |
Implements Aggregator.
Definition at line 121 of file Aggregation.cpp.

|
inlineoverridevirtual |
Return the aggregation operator this accumulator implements.
AggregationOperator enum value for this accumulator. Implements Aggregator.
Definition at line 127 of file Aggregation.cpp.