mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 18:02:08 +08:00
25 lines
347 B
C++
25 lines
347 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "knowhere/common/binary_set.h"
|
|
|
|
namespace zilliz {
|
|
namespace knowhere {
|
|
|
|
|
|
class IndexModel {
|
|
public:
|
|
virtual BinarySet
|
|
Serialize() = 0;
|
|
|
|
virtual void
|
|
Load(const BinarySet &binary) = 0;
|
|
};
|
|
|
|
using IndexModelPtr = std::shared_ptr<IndexModel>;
|
|
|
|
|
|
|
|
} // namespace knowhere
|
|
} // namespace zilliz
|