mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
feat(db): add meta impl factory
Former-commit-id: e9af01dea914b32192efe1c534e174810be5a02a
This commit is contained in:
parent
c1d40bfb3d
commit
f096e0a109
@ -34,6 +34,11 @@ Options OptionsFactory::Build() {
|
||||
return options;
|
||||
}
|
||||
|
||||
std::shared_ptr<meta::DBMetaImpl> DBMetaImplFactory::Build() {
|
||||
DBMetaOptions options = DBMetaOptionsFactory::Build();
|
||||
return std::shared_ptr<meta::DBMetaImpl>(new meta::DBMetaImpl(options));
|
||||
}
|
||||
|
||||
} // namespace engine
|
||||
} // namespace vecwise
|
||||
} // namespace zilliz
|
||||
|
||||
@ -7,7 +7,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include "db/DB.h"
|
||||
#include "DBMetaImpl.h"
|
||||
|
||||
namespace zilliz {
|
||||
namespace vecwise {
|
||||
@ -21,6 +23,9 @@ struct OptionsFactory {
|
||||
static Options Build();
|
||||
};
|
||||
|
||||
struct DBMetaImplFactory {
|
||||
static std::shared_ptr<meta::DBMetaImpl> Build();
|
||||
};
|
||||
|
||||
} // namespace engine
|
||||
} // namespace vecwise
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user