Options.h 707 字节
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 MetaOptions;
11
class Env;
12

X
Xu Peng 已提交
13
struct Options {
X
Xu Peng 已提交
14
    Options();
15 16 17
    uint16_t  memory_sync_interval = 10;
    uint16_t  raw_file_merge_trigger_number = 100;
    size_t  raw_to_index_trigger_size = 100000;
18
    std::shared_ptr<MetaOptions> pMetaOptions;
X
Xu Peng 已提交
19
    Env* env;
X
Xu Peng 已提交
20 21
}; // Options

X
Xu Peng 已提交
22 23 24 25 26 27 28 29 30 31 32 33

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


struct MetaOptions {
}; // MetaOptions


struct DBMetaOptions : public MetaOptions {
34 35
    std::string backend_uri;
    std::string dbname;
X
Xu Peng 已提交
36 37 38
}; // DBMetaOptions


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