libcudf
24.04.00
|
pair accessor of column with/without null bitmask More...
Public Types | |
using | rep_type = device_storage_type_t< T > |
representation type | |
Public Member Functions | |
pair_rep_accessor (column_device_view const &_col) | |
constructor More... | |
thrust::pair< rep_type, bool > | operator() (cudf::size_type i) const |
Pair accessor. More... | |
Public Attributes | |
column_device_view const | col |
column view of column in device | |
pair accessor of column with/without null bitmask
A unary functor returns pair with representative scalar value at id
and boolean validity operator() (cudf::size_type id)
computes element
and returns a pair(element, validity)
the return value for element i
will return pair(column[i], validity)
validity
is true
if has_nulls=false
. validity
is validity of the element at i
if has_nulls=true
and the column is nullable.
cudf::logic_error | if has_nulls==true and the column is not nullable. |
cudf::logic_error | if column datatype and template T type mismatch. |
T | The type of elements in the column |
has_nulls | boolean indicating to treat the column is nullable |
Definition at line 1399 of file column_device_view.cuh.
|
inline |
constructor
[in] | _col | column device view of cudf column |
Definition at line 1409 of file column_device_view.cuh.
|
inline |
Pair accessor.
[in] | i | index of element to access |
Definition at line 1421 of file column_device_view.cuh.