注意

RAFT 中的向量搜索和聚类算法正在迁移到一个专门用于向量搜索的新库 cuVS。在此迁移过程中,我们将继续支持 RAFT 中的向量搜索算法,但在 RAPIDS 24.06(六月)版本之后将不再更新。我们计划在 RAPIDS 24.10(十月)版本完成迁移,并在 24.12(十二月)版本中将其完全从 RAFT 中移除。

键值对#

#include <raft/core/kvp.hpp>

namespace raft::core

template<typename _Key, typename _Value>
struct KeyValuePair#

一个与相应值配对的键标识符。

公有类型

typedef _Key Key#

数据类型。

typedef _Value Value#

数据类型。

公有函数

KeyValuePair() = default#

构造函数。

inline RAFT_INLINE_FUNCTION KeyValuePair(Key const &key, Value const &value)#

构造函数。

inline RAFT_INLINE_FUNCTION bool operator!= (const KeyValuePair &b)

不等运算符。

公有成员

Key key#

项的键。

Value value#

项的值。