/******************************************************************************* * 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 "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