structs_column_view.hpp
前往此文件的文档。
1 /*
2  * Copyright (c) 2022-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>
21 
22 #include <rmm/cuda_stream_view.hpp>
23 
29 namespace CUDF_EXPORT cudf {
30 
41  public
42  // 基础成员:
45  ~structs_column_view() override = default;
58 
64  explicit structs_column_view(column_view const& col);
65 
71  [[nodiscard]] column_view parent() const;
72 
73  using column_view::child_begin;
74  using column_view::child_end;
77  using column_view::null_mask;
78  using column_view::num_children;
79  using column_view::offset;
80  using column_view::size;
81 
98  int index, rmm::cuda_stream_view stream = cudf::get_default_stream()) const;
99 }; // class structs_column_view; // end of group
101 } // namespace CUDF_EXPORT cudf
设备数据的非拥有、不可变视图,作为一个由元素组成的列,其中一些元素可能为空...
给定一个struct类型的列视图,此类的实例为此复合列提供一个包装器...
column_view get_sliced_child(int index, rmm::cuda_stream_view stream=cudf::get_default_stream()) const
返回内部子列,并应用根的任何偏移量。
column_view parent() const
返回父列。
structs_column_view & operator=(structs_column_view const &)=default
拷贝赋值运算符。
structs_column_view(column_view const &col)
从列视图构造一个新的struct列视图对象。
structs_column_view(structs_column_view &&)=default
移动构造函数。
structs_column_view(structs_column_view const &)=default
拷贝构造函数。
structs_column_view & operator=(structs_column_view &&)=default
移动赋值运算符。
cudf::column 的类定义。
列视图类定义
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,...] 内空元素(未设置的位)的数量...
rmm::cuda_stream_view const get_default_stream()
获取当前默认流。
cuDF 接口
定义: host_udf.hpp:37
bool has_nulls(table_view const &view)
如果表的任何列中有空值,则返回True。