template<typename T, typename Nullate>
struct cudf::detail::optional_accessor< T, Nullate >
optional accessor of a column
The optional_accessor always returns a thrust::optional
of column[i]
. The validity of the optional is determined by the Nullate
parameter which may be one of the following:
nullate::YES
means that the column supports nulls and the optional returned might be valid or invalid.
nullate::NO
means the caller attests that the column has no null values, no checks will occur and thrust::optional{column[i]}
will be return for each i
.
nullate::DYNAMIC
defers the assumption of nullability to runtime and the caller specifies if the column has nulls at runtime. For DYNAMIC{true}
the return value will be thrust::optional{column[i]}
if element i
is not null and thrust::optional{}
if element i
is null. For DYNAMIC{false}
the return value will always be thrust::optional{column[i]}
.
- Exceptions
-
- Template Parameters
-
T | The type of elements in the column |
Nullate | A cudf::nullate type describing how to check for nulls. |
Definition at line 1296 of file column_device_view.cuh.