libcudf
24.02.00
|
Comparator for performing equality comparisons between two rows of the same table. More...
Public Member Functions | |
self_comparator (table_view const &t, rmm::cuda_stream_view stream) | |
Construct an owning object for performing equality comparisons between two rows of the same table. More... | |
self_comparator (std::shared_ptr< preprocessed_table > t) | |
Construct an owning object for performing equality comparisons between two rows of the same table. More... | |
template<bool has_nested_columns, typename Nullate , typename PhysicalEqualityComparator = nan_equal_physical_equality_comparator> | |
auto | equal_to (Nullate nullate={}, null_equality nulls_are_equal=null_equality::EQUAL, PhysicalEqualityComparator comparator={}) const noexcept |
Get the comparison operator to use on the device. More... | |
Comparator for performing equality comparisons between two rows of the same table.
Definition at line 1607 of file experimental/row_operators.cuh.
|
inline |
Construct an owning object for performing equality comparisons between two rows of the same table.
t | The table to compare |
stream | The stream to construct this object on. Not the stream that will be used for comparisons using this object. |
Definition at line 1617 of file experimental/row_operators.cuh.
|
inline |
Construct an owning object for performing equality comparisons between two rows of the same table.
This constructor allows independently constructing a preprocessed_table
and sharing it among multiple comparators.
t | A table preprocessed for equality comparison |
Definition at line 1631 of file experimental/row_operators.cuh.
|
inlinenoexcept |
Get the comparison operator to use on the device.
Returns a binary callable, F
, with signature bool F(size_type, size_type)
.
F(i,j)
returns true if and only if row i
compares equal to row j
.
element_comparator
are templated via the type_dispatcher
to help select an overload instance for each column in a table. So, cudf::is_nested<Element>
will return true
if the table has nested-type columns, but it will be a runtime error if template parameter has_nested_columns != true
.has_nested_columns | compile-time optimization for primitive types. This template parameter is to be used by the developer by querying cudf::detail::has_nested_columns(input) . true compiles operator overloads for nested types, while false only compiles operator overloads for primitive types. |
Nullate | A cudf::nullate type describing whether to check for nulls. |
PhysicalEqualityComparator | A equality comparator functor that compares individual values rather than logical elements, defaults to a comparator for which NaN == NaN . |
nullate | Indicates if any input column contains nulls. |
nulls_are_equal | Indicates if nulls are equal. |
comparator | Physical element equality comparison functor. |
Definition at line 1661 of file experimental/row_operators.cuh.