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

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

Public Member Functions

__host__ __device__ element_equality_comparator (column_device_view lhs, column_device_view rhs, bool nulls_are_equal=true)
 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>
__device__ 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>
__device__ bool operator() (size_type lhs_element_index, size_type rhs_element_index)
 

Detailed Description

template<bool has_nulls = true>
class cudf::element_equality_comparator< has_nulls >

Performs an equality comparison between two elements in two columns.

Template Parameters
has_nullsIndicates the potential for null values in either column.

Definition at line 144 of file row_operators.cuh.

Constructor & Destructor Documentation

◆ element_equality_comparator()

template<bool has_nulls = true>
__host__ __device__ cudf::element_equality_comparator< has_nulls >::element_equality_comparator ( column_device_view  lhs,
column_device_view  rhs,
bool  nulls_are_equal = true 
)
inline

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

Note
lhs and rhs may be the same.
Parameters
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 156 of file row_operators.cuh.

Member Function Documentation

◆ operator()()

template<bool has_nulls = true>
template<typename Element , std::enable_if_t< cudf::is_equality_comparable< Element, Element >()> * = nullptr>
__device__ bool cudf::element_equality_comparator< has_nulls >::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

Definition at line 172 of file row_operators.cuh.


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