Options.h 665 字节
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 15 16 17 18 19 20 21
struct MetaOptions {
}; // MetaOptions


struct DBMetaOptions : public MetaOptions {
    std::string backend_uri;
    std::string dbname;
}; // DBMetaOptions


X
Xu Peng 已提交
22
struct Options {
X
Xu Peng 已提交
23
    Options();
24 25 26
    uint16_t  memory_sync_interval = 10;
    uint16_t  raw_file_merge_trigger_number = 100;
    size_t  raw_to_index_trigger_size = 100000;
X
Xu Peng 已提交
27
    Env* env;
X
Xu Peng 已提交
28
    DBMetaOptions meta;
X
Xu Peng 已提交
29 30
}; // Options

X
Xu Peng 已提交
31 32 33 34 35 36 37

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


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