feat(db): add meta impl factory

Former-commit-id: e9af01dea914b32192efe1c534e174810be5a02a
This commit is contained in:
Xu Peng 2019-04-29 15:06:35 +08:00
parent c1d40bfb3d
commit f096e0a109
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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