libcudf
24.04.00
|
Abstract base class for specifying the desired aggregation in an aggregation_request
.
More...
#include <aggregation.hpp>
Public Types | |
enum | Kind { SUM , PRODUCT , MIN , MAX , COUNT_VALID , COUNT_ALL , ANY , ALL , SUM_OF_SQUARES , MEAN , M2 , VARIANCE , STD , MEDIAN , QUANTILE , ARGMAX , ARGMIN , NUNIQUE , NTH_ELEMENT , ROW_NUMBER , RANK , COLLECT_LIST , COLLECT_SET , LEAD , LAG , PTX , CUDA , MERGE_LISTS , MERGE_SETS , MERGE_M2 , COVARIANCE , CORRELATION , TDIGEST , MERGE_TDIGEST , HISTOGRAM , MERGE_HISTOGRAM } |
Possible aggregation operations. More... | |
Public Member Functions | |
aggregation (aggregation::Kind a) | |
Construct a new aggregation object. More... | |
virtual bool | is_equal (aggregation const &other) const |
Compares two aggregation objects for equality. More... | |
virtual size_t | do_hash () const |
Computes the hash value of the aggregation. More... | |
virtual std::unique_ptr< aggregation > | clone () const =0 |
Clones the aggregation object. More... | |
virtual std::vector< std::unique_ptr< aggregation > > | get_simple_aggregations (data_type col_type, cudf::detail::simple_aggregations_collector &collector) const =0 |
Get the simple aggregations that this aggregation requires to compute. More... | |
virtual void | finalize (cudf::detail::aggregation_finalizer &finalizer) const =0 |
Compute the aggregation after pre-requisite simple aggregations have been computed. More... | |
Public Attributes | |
Kind | kind |
The aggregation to perform. | |
Abstract base class for specifying the desired aggregation in an aggregation_request
.
All aggregations must derive from this class to implement the pure virtual functions and potentially encapsulate additional information needed to compute the aggregation.
Definition at line 80 of file aggregation.hpp.
Possible aggregation operations.
Definition at line 85 of file aggregation.hpp.
|
inline |
Construct a new aggregation object.
a | aggregation::Kind enum value |
Definition at line 131 of file aggregation.hpp.
|
pure virtual |
Clones the aggregation object.
|
inlinevirtual |
Computes the hash value of the aggregation.
Definition at line 148 of file aggregation.hpp.
|
pure virtual |
Compute the aggregation after pre-requisite simple aggregations have been computed.
finalizer | The finalizer visitor pattern to use to compute the aggregation |
|
pure virtual |
Get the simple aggregations that this aggregation requires to compute.
col_type | The type of the column to aggregate |
collector | The collector visitor pattern to use to collect the simple aggregations |
|
inlinevirtual |
Compares two aggregation objects for equality.
other | The other aggregation to compare with |
Definition at line 141 of file aggregation.hpp.