计算一行是否在字典序上小于另一行。 更多...
公共成员函数 | |
row_lexicographic_comparator (Nullate has_nulls, table_device_view lhs, table_device_view rhs, order const *column_order=nullptr, null_order const *null_precedence=nullptr) | |
构造一个函数对象,用于对两个表的行执行字典序比较。 更多... | |
bool | operator() (size_type lhs_index, size_type rhs_index) const noexcept |
检查 lhs 表中位于 lhs_index 的行是否在字典序上小于 rhs 表中位于 rhs_index 的行。 更多... | |
计算一行是否在字典序上小于另一行。
字典序的判定规则:
字典序完全等同于对两个单词进行字母排序,例如,aac
在字典序上小于(或位于 abb
之前)。两个单词中的第二个字母是第一个不同的字母,并且 a < b
,因此 aac < abb
。
Nullate | 一个 cudf::nullate 类型,描述如何检查空值。 |
定义于文件 row_operators.cuh 的 第 377 行。
|
inline |
构造一个函数对象,用于对两个表的行执行字典序比较。
如果使用不可比较的列类型调用,则行为是未定义的。
cudf::logic_error | 如果 lhs.num_columns() != rhs.num_columns() |
has_nulls | 指示任一输入表是否包含带空值的列。 |
lhs | 第一个表 |
rhs | 第二个表(可能与 lhs 是同一个表) |
column_order | 可选参数,与行长度相同的设备数组,指示行中每列所需的升序/降序排列。如果为 nullptr ,则假定所有列都按升序排列。 |
null_precedence | 可选参数,与行长度相同的设备数组,指示每列中空值与其他所有值如何比较。如果为 nullptr,则所有列的空值优先级将是 null_order::BEFORE 。 |
定义于文件 row_operators.cuh 的 第 398 行。
|
inlinenoexcept |
检查 lhs
表中位于 lhs_index
的行是否在字典序上小于 rhs
表中位于 rhs_index
的行。
lhs_index | 要检查的 lhs 表中的行索引 |
rhs_index | 要检查的 rhs 表中的行索引 |
lhs
表中的行小于 rhs
表中的行,则为 true
定义于文件 row_operators.cuh 的 第 421 行。