dictionary_factories.hpp
前往此文件的文档。
1 /*
2  * Copyright (c) 2020-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>
22 
23 #include <rmm/cuda_stream_view.hpp>
24 
25 namespace CUDF_EXPORT cudf {
65 std::unique_ptr<column> make_dictionary_column(
66  column_view const& keys_column,
67  column_view const& indices_column,
70 
93 std::unique_ptr<column> make_dictionary_column(
94  std::unique_ptr<column> keys_column,
95  std::unique_ptr<column> indices_column,
96  rmm::device_buffer&& null_mask,
100 
122 std::unique_ptr<column> make_dictionary_column(
123  std::unique_ptr<column> keys_column,
124  std::unique_ptr<column> indices_column,
127  // 组结束
129 } // 命名空间 CUDF_EXPORT cudf
一个非拥有、不可变的设备数据视图,表示为元素的列,其中一些元素可能为 null...
cudf::column 的类定义。
列视图类定义
std::unique_ptr< column > make_dictionary_column(std::unique_ptr< column > keys_column, std::unique_ptr< column > indices_column, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
通过获取提供的键列和索引列的所有权来构造字典列。
cudf::size_type null_count(bitmask_type const *bitmask, size_type start, size_type stop, rmm::cuda_stream_view stream=cudf::get_default_stream())
给定一个有效性位掩码,计算范围 [start,... 内 null 元素的数量(未设置的位)。
rmm::cuda_stream_view const get_default_stream()
获取当前默认流。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前设备内存资源引用。
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
int32_t size_type
列和表的行索引类型。
定义: types.hpp:95
cuDF 接口
定义: host_udf.hpp:37