ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
MaxAgg< T > Struct Template Reference

Aggregator implementing MAX for integer or float types. More...

Inheritance diagram for MaxAgg< T >:
Collaboration diagram for MaxAgg< T >:

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 >
value {}
 Current accumulated value.
 
bool has = false
 true once the first non-NULL input has been seen
 

Detailed Description

template<class T>
struct MaxAgg< T >

Aggregator implementing MAX for integer or float types.

Definition at line 155 of file Aggregation.cpp.

Member Function Documentation

◆ add()

template<class T >
void MaxAgg< T >::add ( const AggValue x)
inlineoverridevirtual

Incorporate one input value into the running aggregate.

Parameters
xInput value to add.

Implements Aggregator.

Definition at line 159 of file Aggregation.cpp.

Here is the call graph for this function:

◆ op()

template<class T >
AggregationOperator MaxAgg< T >::op ( ) const
inlineoverridevirtual

Return the aggregation operator this accumulator implements.

Returns
The AggregationOperator enum value for this accumulator.

Implements Aggregator.

Definition at line 169 of file Aggregation.cpp.


The documentation for this struct was generated from the following file: