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

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

Inheritance diagram for MinAgg< T >:
Collaboration diagram for MinAgg< 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 MinAgg< T >

Aggregator implementing MIN for integer or float types.

Definition at line 134 of file Aggregation.cpp.

Member Function Documentation

◆ add()

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

Incorporate one input value into the running aggregate.

Parameters
xInput value to add.

Implements Aggregator.

Definition at line 138 of file Aggregation.cpp.

Here is the call graph for this function:

◆ op()

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

Return the aggregation operator this accumulator implements.

Returns
The AggregationOperator enum value for this accumulator.

Implements Aggregator.

Definition at line 148 of file Aggregation.cpp.


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