带有/不带空值位掩码的列的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 | |
带有/不带空值位掩码的列的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.cuh 的 1402 行。
|
inline |
|
inline |