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 
13 namespace CUDF_EXPORT cudf {
14 namespace lists {
45 std::unique_ptr<column> sort_lists(
46  lists_column_view const& source_column,
47  order column_order,
48  null_order null_precedence,
51 
58 std::unique_ptr<column> stable_sort_lists(
59  lists_column_view const& source_column,
60  order column_order,
61  null_order null_precedence,
64  // end of group
66 } // namespace lists
67 } // 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:149
order
Indicates the order in which elements should be sorted.
Definition: types.hpp:108
Class definition for cudf::lists_column_view.
APIs for getting and setting the current device memory resource.
cuDF interfaces
Definition: host_udf.hpp:26