sorting.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
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 
18 namespace CUDF_EXPORT cudf {
19 namespace lists {
48 std::unique_ptr<column> sort_lists(
49  lists_column_view const& source_column,
50  order column_order,
51  null_order null_precedence,
54 
61 std::unique_ptr<column> stable_sort_lists(
62  lists_column_view const& source_column,
63  order column_order,
64  null_order null_precedence,
67  // end of group
69 } // namespace lists
70 } // 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.
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:140
order
Indicates the order in which elements should be sorted.
Definition: types.hpp:99
Class definition for cudf::lists_column_view.
APIs for getting and setting the current device memory resource.
cuDF interfaces
Definition: host_udf.hpp:26