lists/combine.hpp
前往此文件的文档。
1 /*
2  * Copyright (c) 2021-2024, 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  * https://apache.ac.cn/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 #include <cudf/utilities/export.hpp>
22 
23 namespace CUDF_EXPORT cudf {
24 
26 namespace lists {
37 enum class concatenate_null_policy { IGNORE, NULLIFY_OUTPUT_ROW };
38 
65 std::unique_ptr<column> concatenate_rows(
66  table_view const& input,
67  concatenate_null_policy null_policy = concatenate_null_policy::IGNORE,
70 
96 std::unique_ptr<column> concatenate_list_elements(
97  column_view const& input,
98  concatenate_null_policy null_policy = concatenate_null_policy::IGNORE,
101  // end of group
103 } // namespace lists
104 } // namespace CUDF_EXPORT cudf
设备数据的一种非拥有、不可变视图,表示为元素列,其中一些元素可能为空...
一组大小相同的 cudf::column_view。
cudf::column 的类定义。
rmm::cuda_stream_view const get_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())
将列表列的同一行中的多个列表连接成一个列表。
concatenate_null_policy
指定是否在连接中忽略空列表元素,或者将整个连接...
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())
按行将多个列表列连接成一个列表列。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
null_policy
指定是包含空值还是排除空值的枚举。
定义: types.hpp:126
cudf::lists_column_view 的类定义。
cuDF 接口
定义: host_udf.hpp:37