Public Types | Public Member Functions | Public Attributes | List of all members
cudf::aggregation Class Reference

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, VARIANCE, STD,
  MEDIAN, QUANTILE, ARGMAX, ARGMIN,
  NUNIQUE, NTH_ELEMENT, ROW_NUMBER, COLLECT,
  LEAD, LAG, PTX, CUDA
}
 Possible aggregation operations. More...
 

Public Member Functions

 aggregation (aggregation::Kind a)
 
virtual bool is_equal (aggregation const &other) const
 
virtual size_t do_hash () const
 
virtual std::unique_ptr< aggregationclone () const
 
virtual std::vector< aggregation::Kindget_simple_aggregations (data_type col_type) const
 
virtual void finalize (cudf::detail::aggregation_finalizer &finalizer)
 

Public Attributes

Kind kind
 The aggregation to perform.
 

Detailed Description

Base class for specifying the desired aggregation in an aggregation_request.

Other kinds of aggregations may derive from this class to encapsulate additional information needed to compute the aggregation.

Definition at line 52 of file aggregation.hpp.

Member Enumeration Documentation

◆ Kind

Possible aggregation operations.

Enumerator
SUM 

sum reduction

PRODUCT 

product reduction

MIN 

min reduction

MAX 

max reduction

COUNT_VALID 

count number of valid elements

COUNT_ALL 

count number of elements

ANY 

any reduction

ALL 

all reduction

SUM_OF_SQUARES 

sum of squares reduction

MEAN 

arithmetic mean reduction

VARIANCE 

groupwise variance

STD 

groupwise standard deviation

MEDIAN 

median reduction

QUANTILE 

compute specified quantile(s)

ARGMAX 

Index of max element.

ARGMIN 

Index of min element.

NUNIQUE 

count number of unique elements

NTH_ELEMENT 

get the nth element

ROW_NUMBER 

get row-number of current index (relative to rolling window)

COLLECT 

collect values into a list

LEAD 

window function, accesses row at specified offset following current row

LAG 

window function, accesses row at specified offset preceding current row

PTX 

PTX UDF based reduction.

CUDA 

CUDA UDF based reduction.

Definition at line 57 of file aggregation.hpp.


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