lists/combine.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021-2023, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <cudf/column/column.hpp>
20 
22 
23 namespace cudf {
24 
26 namespace lists {
37 enum class concatenate_null_policy { IGNORE, NULLIFY_OUTPUT_ROW };
38 
64 std::unique_ptr<column> concatenate_rows(
65  table_view const& input,
66  concatenate_null_policy null_policy = concatenate_null_policy::IGNORE,
67  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
68 
95 std::unique_ptr<column> concatenate_list_elements(
96  column_view const& input,
97  concatenate_null_policy null_policy = concatenate_null_policy::IGNORE,
98  rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
99  // end of group
101 } // namespace lists
102 } // namespace cudf
per_device_resource.hpp
column.hpp
Class definition for cudf::column.
cudf::null_policy
null_policy
Enum to specify whether to include nulls or exclude nulls.
Definition: types.hpp:111
cudf::column_view
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Definition: column_view.hpp:313
cudf::lists::concatenate_list_elements
std::unique_ptr< column > concatenate_list_elements(column_view const &input, concatenate_null_policy null_policy=concatenate_null_policy::IGNORE, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Concatenating multiple lists on the same row of a lists column into a single list.
cudf::lists::concatenate_null_policy
concatenate_null_policy
Flag to specify whether a null list element will be ignored from concatenation, or the entire concate...
Definition: lists/combine.hpp:37
cudf::table_view
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:187
cudf
cuDF interfaces
Definition: aggregation.hpp:34
cudf::lists::concatenate_rows
std::unique_ptr< column > concatenate_rows(table_view const &input, concatenate_null_policy null_policy=concatenate_null_policy::IGNORE, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Row-wise concatenating multiple lists columns into a single lists column.
rmm::mr::device_memory_resource
lists_column_view.hpp
Class definition for cudf::lists_column_view.