24 #include <cudf/utilities/export.hpp>
34 namespace CUDF_EXPORT
cudf {
39 class sort_groupby_helper;
77 std::vector<std::unique_ptr<groupby_scan_aggregation>>
aggregations;
89 std::vector<std::unique_ptr<column>> results{};
129 sorted keys_are_sorted = sorted::NO,
130 std::vector<order>
const& column_order = {},
131 std::vector<null_order>
const& null_precedence = {});
186 std::pair<std::unique_ptr<table>, std::vector<aggregation_result>>
aggregate(
195 std::pair<std::unique_ptr<table>, std::vector<aggregation_result>>
aggregate(
250 std::pair<std::unique_ptr<table>, std::vector<aggregation_result>>
scan(
304 std::pair<std::unique_ptr<table>, std::unique_ptr<table>>
shift(
307 std::vector<std::reference_wrapper<scalar const>>
const& fill_values,
381 null_policy _include_null_keys{null_policy::EXCLUDE};
383 sorted _keys_are_sorted{sorted::NO};
384 std::vector<order> _column_order{};
386 std::vector<null_order> _null_precedence{};
389 std::unique_ptr<detail::sort::sort_groupby_helper>
399 detail::sort::sort_groupby_helper& helper();
405 std::pair<std::unique_ptr<table>, std::vector<aggregation_result>> dispatch_aggregation(
406 host_span<aggregation_request const> requests,
411 std::pair<std::unique_ptr<table>, std::vector<aggregation_result>> sort_aggregate(
412 host_span<aggregation_request const> requests,
416 std::pair<std::unique_ptr<table>, std::vector<aggregation_result>> sort_scan(
417 host_span<scan_request const> requests,
Representation for specifying desired aggregations from aggregation-based APIs, e....
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Groups values by keys and computes aggregations on those groups.
std::pair< std::unique_ptr< table >, std::vector< aggregation_result > > scan(host_span< scan_request const > requests, rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Performs grouped scans on the specified values.
std::pair< std::unique_ptr< table >, std::vector< aggregation_result > > aggregate(host_span< aggregation_request const > requests, rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Performs grouped aggregations on the specified values.
groups get_groups(cudf::table_view values={}, rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Get the grouped keys and values corresponding to a groupby operation on a set of values.
std::pair< std::unique_ptr< table >, std::vector< aggregation_result > > aggregate(host_span< aggregation_request const > requests, rmm::cuda_stream_view stream, rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Performs grouped aggregations on the specified values.
std::pair< std::unique_ptr< table >, std::unique_ptr< table > > shift(table_view const &values, host_span< size_type const > offsets, std::vector< std::reference_wrapper< scalar const >> const &fill_values, rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Performs grouped shifts for specified values.
groupby(table_view const &keys, null_policy null_handling=null_policy::EXCLUDE, sorted keys_are_sorted=sorted::NO, std::vector< order > const &column_order={}, std::vector< null_order > const &null_precedence={})
Construct a groupby object with the specified keys
std::pair< std::unique_ptr< table >, std::unique_ptr< table > > replace_nulls(table_view const &values, host_span< cudf::replace_policy const > replace_policies, rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Performs grouped replace nulls on value.
A set of cudf::column_view's of the same size.
column view class definitions
std::unique_ptr< table > sort(table_view const &input, std::vector< order > const &column_order={}, std::vector< null_order > const &null_precedence={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Performs a lexicographic sort of the rows of a table.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
null_policy
Enum to specify whether to include nulls or exclude nulls.
sorted
Indicates whether a collection of values is known to be sorted.
Request for groupby aggregation(s) to perform on a column.
std::vector< std::unique_ptr< groupby_aggregation > > aggregations
Desired aggregations.
column_view values
The elements to aggregate.
The result(s) of an aggregation_request
The grouped data corresponding to a groupby operation on a set of values.
std::unique_ptr< table > keys
Table of grouped keys.
std::vector< size_type > offsets
Group Offsets.
std::unique_ptr< table > values
Table of grouped values.
Request for groupby aggregation(s) for scanning a column.
column_view values
The elements to aggregate.
std::vector< std::unique_ptr< groupby_scan_aggregation > > aggregations
Desired aggregations.
C++20 std::span with reduced feature set.
Class definitions for (mutable)_table_view
Type declarations for libcudf.