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

Performs a relational comparison between two elements in two columns. More...

Public Member Functions

__host__ __device__ element_relational_comparator (column_device_view lhs, column_device_view rhs, null_order null_precedence)
 Construct type-dispatched function object for performing a relational comparison between two elements. More...
 
template<typename Element , std::enable_if_t< cudf::is_relationally_comparable< Element, Element >()> * = nullptr>
__device__ weak_ordering operator() (size_type lhs_element_index, size_type rhs_element_index) const noexcept
 Performs a relational comparison between the specified elements. More...
 
template<typename Element , std::enable_if_t< not cudf::is_relationally_comparable< Element, Element >()> * = nullptr>
__device__ weak_ordering operator() (size_type lhs_element_index, size_type rhs_element_index)
 

Detailed Description

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

Performs a relational comparison between two elements in two columns.

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

Definition at line 236 of file row_operators.cuh.

Constructor & Destructor Documentation

◆ element_relational_comparator()

template<bool has_nulls = true>
__host__ __device__ cudf::element_relational_comparator< has_nulls >::element_relational_comparator ( column_device_view  lhs,
column_device_view  rhs,
null_order  null_precedence 
)
inline

Construct type-dispatched function object for performing a relational comparison 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)
null_precedenceIndicates how null values are ordered with other values

Definition at line 249 of file row_operators.cuh.

Member Function Documentation

◆ operator()()

template<bool has_nulls = true>
template<typename Element , std::enable_if_t< cudf::is_relationally_comparable< Element, Element >()> * = nullptr>
__device__ weak_ordering cudf::element_relational_comparator< has_nulls >::operator() ( size_type  lhs_element_index,
size_type  rhs_element_index 
) const
inlinenoexcept

Performs a relational comparison between the specified elements.

Parameters
lhs_element_indexThe index of the first element
rhs_element_indexThe index of the second element
null_precedenceIndicates how null values are ordered with other values
Returns
weak_ordering Indicates the relationship between the elements in the lhs and rhs columns.

Definition at line 268 of file row_operators.cuh.


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