libcudf  24.02.00
Public Member Functions | List of all members
cudf::element_equality_comparator< Nullate > Class Template Reference

Performs an equality comparison between two elements in two columns. More...

Public Member Functions

 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...
 

Detailed Description

template<typename Nullate>
class cudf::element_equality_comparator< Nullate >

Performs an equality comparison between two elements in two columns.

Template Parameters
NullateA cudf::nullate type describing how to check for nulls.

Definition at line 165 of file row_operators.cuh.

Constructor & Destructor Documentation

◆ element_equality_comparator()

template<typename Nullate >
cudf::element_equality_comparator< Nullate >::element_equality_comparator ( Nullate  has_nulls,
column_device_view  lhs,
column_device_view  rhs,
null_equality  nulls_are_equal = null_equality::EQUAL 
)
inline

Construct type-dispatched function object for comparing equality between two elements.

Note
lhs and rhs may be the same.
Parameters
has_nullsIndicates if either input column contains nulls.
lhsThe column containing the first element
rhsThe column containing the second element (may be the same as lhs)
nulls_are_equalIndicates if two null elements are treated as equivalent

Definition at line 179 of file row_operators.cuh.

Member Function Documentation

◆ operator()()

template<typename Nullate >
template<typename Element , std::enable_if_t< cudf::is_equality_comparable< Element, Element >()> * = nullptr>
bool cudf::element_equality_comparator< Nullate >::operator() ( size_type  lhs_element_index,
size_type  rhs_element_index 
) const
inlinenoexcept

Compares the specified elements for equality.

Parameters
lhs_element_indexThe index of the first element
rhs_element_indexThe 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 196 of file row_operators.cuh.


The documentation for this class was generated from the following file: