lists/combine.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>
9 #include <cudf/utilities/export.hpp>
11 
12 namespace CUDF_EXPORT cudf {
13 
15 namespace lists {
26 enum class concatenate_null_policy { IGNORE, NULLIFY_OUTPUT_ROW };
27 
54 std::unique_ptr<column> concatenate_rows(
55  table_view const& input,
56  concatenate_null_policy null_policy = concatenate_null_policy::IGNORE,
59 
85 std::unique_ptr<column> concatenate_list_elements(
86  column_view const& input,
87  concatenate_null_policy null_policy = concatenate_null_policy::IGNORE,
90  // end of group
92 } // namespace lists
93 } // namespace CUDF_EXPORT cudf
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:189
Class definition for cudf::column.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
std::unique_ptr< column > concatenate_list_elements(column_view const &input, concatenate_null_policy null_policy=concatenate_null_policy::IGNORE, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Concatenating multiple lists on the same row of a lists column into a single list.
concatenate_null_policy
Flag to specify whether a null list element will be ignored from concatenation, or the entire concate...
std::unique_ptr< column > concatenate_rows(table_view const &input, concatenate_null_policy null_policy=concatenate_null_policy::IGNORE, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Row-wise concatenating multiple lists columns into a single lists 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_policy
Enum to specify whether to include nulls or exclude nulls.
Definition: types.hpp:115
Class definition for cudf::lists_column_view.
cuDF interfaces
Definition: host_udf.hpp:26