主机端 UDF 实现的基本接口。更多...
#include <host_udf.hpp>
公有成员函数 | |
virtual | ~host_udf_base ()=default |
默认析构函数。 | |
virtual std::size_t | do_hash () const |
计算实例的哈希值。更多... | |
virtual bool | is_equal (host_udf_base const &other) const =0 |
比较派生类的两个实例是否相等。更多... | |
virtual std::unique_ptr< host_udf_base > | clone () const =0 |
克隆实例。更多... | |
友元 | |
struct | reduce_host_udf |
struct | segmented_reduce_host_udf |
struct | groupby_host_udf |
主机端 UDF 实现的基本接口。
这个类声明了必须在用户 UDF 实现中定义的函数 do_hash
、is_equal
和 clone
。这些函数是 libcudf 聚合框架执行其操作所必需的。
定义于文件 host_udf.hpp 的第 50 行。
|
纯虚函数 |
克隆实例。
派生类的实例应轻量级,以便高效克隆。
|
内联虚函数 |
|
纯虚函数 |
比较派生类的两个实例是否相等。
other | 用于比较的另一个实例 |