DB.cpp 861 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*******************************************************************************
 * 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;
X
xj.lin 已提交
20 21 22 23 24 25 26 27

#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);
28 29 30 31 32 33
    return;
}

} // namespace engine
} // namespace vecwise
} // namespace zilliz