ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
OrAgg Struct Reference

Aggregator implementing boolean OR (returns true if any input is true). More...

Inheritance diagram for OrAgg:
Collaboration diagram for OrAgg:

Public Member Functions

 OrAgg ()
 
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< bool >
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< bool >
bool value
 Current accumulated value.
 
bool has
 true once the first non-NULL input has been seen
 

Detailed Description

Aggregator implementing boolean OR (returns true if any input is true).

Definition at line 192 of file Aggregation.cpp.

Constructor & Destructor Documentation

◆ OrAgg()

OrAgg::OrAgg ( )
inline

Definition at line 193 of file Aggregation.cpp.

Member Function Documentation

◆ add()

void OrAgg::add ( const AggValue x)
inlineoverridevirtual

Incorporate one input value into the running aggregate.

Parameters
xInput value to add.

Implements Aggregator.

Definition at line 197 of file Aggregation.cpp.

Here is the call graph for this function:

◆ op()

AggregationOperator OrAgg::op ( ) const
inlineoverridevirtual

Return the aggregation operator this accumulator implements.

Returns
The AggregationOperator enum value for this accumulator.

Implements Aggregator.

Definition at line 203 of file Aggregation.cpp.


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