Performs an equality comparison between two elements in two columns.
More...
|
| element_equality_comparator (Nullate has_nulls, column_device_view lhs, column_device_view rhs, null_equality nulls_are_equal=null_equality::EQUAL) |
| Construct type-dispatched function object for comparing equality between two elements. More...
|
|
template<typename Element , std::enable_if_t< cudf::is_equality_comparable< Element, Element >()> * = nullptr> |
bool | operator() (size_type lhs_element_index, size_type rhs_element_index) const noexcept |
| Compares the specified elements for equality. More...
|
|
template<typename Element , std::enable_if_t< not cudf::is_equality_comparable< Element, Element >()> * = nullptr> |
bool | operator() (size_type lhs_element_index, size_type rhs_element_index) |
|
template<typename Nullate>
class cudf::element_equality_comparator< Nullate >
Performs an equality comparison between two elements in two columns.
- Template Parameters
-
Definition at line 168 of file row_operators.cuh.
◆ element_equality_comparator()
template<typename Nullate >
Construct type-dispatched function object for comparing equality between two elements.
- Note
lhs
and rhs
may be the same.
- Parameters
-
has_nulls | Indicates if either input column contains nulls. |
lhs | The column containing the first element |
rhs | The column containing the second element (may be the same as lhs) |
nulls_are_equal | Indicates if two null elements are treated as equivalent |
Definition at line 182 of file row_operators.cuh.
◆ operator()()
template<typename Nullate >
template<typename Element , std::enable_if_t< cudf::is_equality_comparable< Element, Element >()> * = nullptr>
Compares the specified elements for equality.
- Parameters
-
lhs_element_index | The index of the first element |
rhs_element_index | The index of the second element |
- Returns
- True if both lhs and rhs element are both nulls and
nulls_are_equal
is true, or equal
Definition at line 199 of file row_operators.cuh.
The documentation for this class was generated from the following file: