mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-31 16:05:30 +08:00
36 lines
927 B
C++
36 lines
927 B
C++
/*******************************************************************************
|
|
* Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
* Proprietary and confidential.
|
|
******************************************************************************/
|
|
|
|
#include "DBImpl.h"
|
|
#include "DBMetaImpl.h"
|
|
#include "Env.h"
|
|
/* #include "FaissExecutionEngine.h" */
|
|
/* #include "Traits.h" */
|
|
#include "Factories.h"
|
|
|
|
namespace zilliz {
|
|
namespace vecwise {
|
|
namespace engine {
|
|
|
|
DB::~DB() {}
|
|
|
|
void DB::Open(const Options& options, DB** dbptr) {
|
|
*dbptr = nullptr;
|
|
|
|
#ifdef GPU_VERSION
|
|
std::string default_index_type{"Faiss,IVF"};
|
|
#else
|
|
std::string default_index_type{"Faiss,IDMap"};
|
|
#endif
|
|
|
|
*dbptr = DBFactory::Build(options, default_index_type);
|
|
return;
|
|
}
|
|
|
|
} // namespace engine
|
|
} // namespace vecwise
|
|
} // namespace zilliz
|