带/不带空值位掩码的列的对访问器 更多...
公共成员函数 | |
pair_accessor (column_device_view const &_col) | |
构造函数 更多... | |
thrust::pair< T, bool > | operator() (cudf::size_type i) const |
对访问器。 更多... | |
公共属性 | |
column_device_view const | col |
设备中列的列视图 | |
带/不带空值位掩码的列的对访问器
一个一元函数对象,返回在 id
处的标量值和布尔有效性的对 operator() (cudf::size_type id)
计算 element
并返回一个 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 的第 1356 行。
|
inline |
|
inline |