提交 1fa42f9d 编写于 作者: X Xu Peng

feat(db): add data api for wrapper


Former-commit-id: baabe91cc364d832e17016c554d66e29e400dfd4
上级 2e8d45aa
......@@ -62,6 +62,9 @@ public:
// virtual bool remove_ids_range(const faiss::IDSelector &sel, long &nremove);
// virtual bool index_display();
//
virtual std::shared_ptr<faiss::Index> data() { return index_; }
virtual const std::shared_ptr<faiss::Index>& data() const { return index_; }
private:
friend void write_index(const Index_ptr &index, const std::string &file_name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册