Abstract base class for specifying the desired aggregation in an aggregation_request.
More...
#include <aggregation.hpp>
Public Types | |
| enum | Kind : int32_t { SUM = 0 , SUM_WITH_OVERFLOW , 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 , EWMA , RANK , COLLECT_LIST , COLLECT_SET , LEAD , LAG , PTX , CUDA , HOST_UDF , MERGE_LISTS , MERGE_SETS , MERGE_M2 , COVARIANCE , CORRELATION , TDIGEST , MERGE_TDIGEST , HISTOGRAM , MERGE_HISTOGRAM , BITWISE_AGG , TOP_K , INVALID } |
| Possible aggregation operations. More... | |
Public Member Functions | |
| aggregation () | |
| Default constructor. More... | |
| aggregation (Kind kind_) | |
| Construct a new aggregation object from a given aggregation kind. More... | |
| bool | is_valid () const |
| Checks if the aggregation is valid, i.e. it was constructed with a valid value for the aggregation kind. 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... | |
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 74 of file aggregation.hpp.
| enum cudf::aggregation::Kind : int32_t |
Possible aggregation operations.
Definition at line 79 of file aggregation.hpp.
|
inline |
Default constructor.
This constructor should not be called at all. It only exists to satisfy the compiler requirements.
Definition at line 130 of file aggregation.hpp.
|
inline |
Construct a new aggregation object from a given aggregation kind.
| kind_ | aggregation::Kind enum value |
Definition at line 140 of file aggregation.hpp.
|
pure virtual |
Clones the aggregation object.
|
inlinevirtual |
Computes the hash value of the aggregation.
Definition at line 165 of file aggregation.hpp.
|
inlinevirtual |
Compares two aggregation objects for equality.
| other | The other aggregation to compare with |
Definition at line 158 of file aggregation.hpp.
|
inline |
Checks if the aggregation is valid, i.e. it was constructed with a valid value for the aggregation kind.
Definition at line 150 of file aggregation.hpp.