Options.h 1006 字节
Newer Older
X
Xu Peng 已提交
1 2 3 4 5
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/
X
Xu Peng 已提交
6
#pragma once
X
Xu Peng 已提交
7

X
Xu Peng 已提交
8
#include <string>
9
#include <memory>
X
Xu Peng 已提交
10

X
Xu Peng 已提交
11 12 13
namespace zilliz {
namespace vecwise {
namespace engine {
X
Xu Peng 已提交
14

15
class Env;
16

X
Xu Peng 已提交
17 18 19
struct DBMetaOptions {
    /* DBMetaOptions(const std::string&, const std::string&); */
    std::string path;
X
Xu Peng 已提交
20 21 22 23
    std::string backend_uri;
}; // DBMetaOptions


X
Xu Peng 已提交
24
struct Options {
X
Xu Peng 已提交
25
    Options();
26 27
    uint16_t  memory_sync_interval = 1;
    uint16_t  merge_trigger_number = 2;
X
Xu Peng 已提交
28
    size_t  index_trigger_size = 1024*1024*256;
X
Xu Peng 已提交
29
    Env* env;
X
Xu Peng 已提交
30
    DBMetaOptions meta;
X
Xu Peng 已提交
31 32
}; // Options

X
Xu Peng 已提交
33 34 35 36 37 38 39

struct GroupOptions {
    size_t dimension;
    bool has_id = false;
}; // GroupOptions


X
Xu Peng 已提交
40 41 42
} // namespace engine
} // namespace vecwise
} // namespace zilliz