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

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

Public Member Functions

 element_relational_comparator (Nullate has_nulls, 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...
 
 element_relational_comparator (Nullate has_nulls, column_device_view lhs, column_device_view rhs)
 Construct type-dispatched function object for performing a relational comparison between two elements in two columns. More...
 
template<typename Element , std::enable_if_t< cudf::is_relationally_comparable< Element, Element >()> * = nullptr>
weak_ordering operator() (size_type lhs_element_index, size_type rhs_element_index) const noexcept
 Performs a relational comparison between the specified elements. More...
 

Detailed Description

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

Performs a relational comparison between two elements in two columns.

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

Definition at line 286 of file row_operators.cuh.

Constructor & Destructor Documentation

◆ element_relational_comparator() [1/2]

template<typename Nullate >
cudf::element_relational_comparator< Nullate >::element_relational_comparator ( Nullate  has_nulls,
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)
has_nullsIndicates if either input column contains nulls.
null_precedenceIndicates how null values are ordered with other values

Definition at line 299 of file row_operators.cuh.

◆ element_relational_comparator() [2/2]

template<typename Nullate >
cudf::element_relational_comparator< Nullate >::element_relational_comparator ( Nullate  has_nulls,
column_device_view  lhs,
column_device_view  rhs 
)
inline

Construct type-dispatched function object for performing a relational comparison between two elements in two columns.

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)

Definition at line 315 of file row_operators.cuh.

Member Function Documentation

◆ operator()()

template<typename Nullate >
template<typename Element , std::enable_if_t< cudf::is_relationally_comparable< Element, Element >()> * = nullptr>
weak_ordering cudf::element_relational_comparator< Nullate >::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
Returns
Indicates the relationship between the elements in the lhs and rhs columns.

Definition at line 332 of file row_operators.cuh.


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