Public Types | Public Member Functions | Public Attributes | 所有成员列表
cudf::detail::pair_rep_accessor< T, has_nulls > 结构体模板参考

带有/不带空值位掩码的列的pair accessor 更多...

Public Types

using rep_type = device_storage_type_t< T >
 表示类型
 

Public Member Functions

 pair_rep_accessor (column_device_view const &_col)
 构造函数 更多...
 
thrust::pair< rep_type, bool > operator() (cudf::size_type i) const
 Pair accessor。 更多...
 

Public Attributes

column_device_view const col
 设备中的列的column view
 

详细描述

template<typename T, bool has_nulls = false>
struct cudf::detail::pair_rep_accessor< T, has_nulls >

带有/不带空值位掩码的列的pair accessor

一个一元函数对象,返回带有索引 `id` 处的代表性标量值和布尔有效性的pair,`operator() (cudf::size_type id)` 计算元素并返回一个 `pair(element, validity)`

元素 `i` 的返回值将返回 `pair(column[i], validity)`。如果 `has_nulls=false`,则 `validity` 为 `true`。如果 `has_nulls=true` 且列是可空的,则 `validity` 是元素 `i` 的有效性。

异常
cudf::logic_error如果 `has_nulls==true` 且列不可空。
cudf::logic_error如果列数据类型和模板 T 类型不匹配。
模板参数
T列中元素的类型
has_nulls指示是否将列视为可空的布尔值

定义于文件 column_device_view.cuh1402 行。

构造函数与析构函数文档

◆ pair_rep_accessor()

template<typename T , bool has_nulls = false>
cudf::detail::pair_rep_accessor< T, has_nulls >::pair_rep_accessor ( column_device_view const &  _col)
inline

构造函数

参数
[in]_colcudf 列的 column device view

定义于文件 column_device_view.cuh1412 行。

成员函数文档

◆ operator()()

template<typename T , bool has_nulls = false>
thrust::pair<rep_type, bool> cudf::detail::pair_rep_accessor< T, has_nulls >::operator() ( cudf::size_type  i) const
inline

Pair accessor。

参数
[in]i要访问的元素的索引
返回
元素和有效性的pair

定义于文件 column_device_view.cuh1424 行。


本结构体的文档由以下文件生成