Options.h 650 字节
Newer Older
X
Xu Peng 已提交
1
#pragma once
X
Xu Peng 已提交
2

X
Xu Peng 已提交
3
#include <string>
4
#include <memory>
X
Xu Peng 已提交
5

X
Xu Peng 已提交
6 7 8
namespace zilliz {
namespace vecwise {
namespace engine {
X
Xu Peng 已提交
9

10
class Env;
11

X
Xu Peng 已提交
12 13 14
struct DBMetaOptions {
    /* DBMetaOptions(const std::string&, const std::string&); */
    std::string path;
X
Xu Peng 已提交
15 16 17 18
    std::string backend_uri;
}; // DBMetaOptions


X
Xu Peng 已提交
19
struct Options {
X
Xu Peng 已提交
20
    Options();
21
    uint16_t  memory_sync_interval = 10;
X
Xu Peng 已提交
22 23
    uint16_t  merge_trigger_number = 100;
    size_t  index_trigger_size = 100000;
X
Xu Peng 已提交
24
    Env* env;
X
Xu Peng 已提交
25
    DBMetaOptions meta;
X
Xu Peng 已提交
26 27
}; // Options

X
Xu Peng 已提交
28 29 30 31 32 33 34

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


X
Xu Peng 已提交
35 36 37
} // namespace engine
} // namespace vecwise
} // namespace zilliz