lists/sorting.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
7 #include <cudf/column/column.hpp>
10 #include <cudf/utilities/export.hpp>
12 
13 namespace CUDF_EXPORT cudf {
14 namespace lists {
43 std::unique_ptr<column> sort_lists(
44  lists_column_view const& source_column,
45  order column_order,
46  null_order null_precedence,
49 
56 std::unique_ptr<column> stable_sort_lists(
57  lists_column_view const& source_column,
58  order column_order,
59  null_order null_precedence,
62  // end of group
64 } // namespace lists
65 } // namespace CUDF_EXPORT cudf
Given a column-view of lists type, an instance of this class provides a wrapper on this compound colu...
Class definition for cudf::column.
column view class definitions
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
std::unique_ptr< column > stable_sort_lists(lists_column_view const &source_column, order column_order, null_order null_precedence, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Segmented sort of the elements within a list in each row of a list column using stable sort.
std::unique_ptr< column > sort_lists(lists_column_view const &source_column, order column_order, null_order null_precedence, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Segmented sort of the elements within a list in each row of a list column.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
detail::cccl_async_resource_ref< cuda::mr::resource_ref< cuda::mr::device_accessible > > device_async_resource_ref
null_order
Indicates how null values compare against all other values.
Definition: types.hpp:148
order
Indicates the order in which elements should be sorted.
Definition: types.hpp:107
Class definition for cudf::lists_column_view.
cuDF interfaces
Definition: host_udf.hpp:26