options.h 659 字节
Newer Older
X
Xu Peng 已提交
1 2 3
#ifndef VECENGINE_OPTIONS_H_
#define VECENGINE_OPTIONS_H_

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

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

struct Options {
11 12 13
    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 已提交
14 15
}; // Options

X
Xu Peng 已提交
16 17 18 19 20 21 22 23 24 25 26 27

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


struct MetaOptions {
}; // MetaOptions


struct DBMetaOptions : public MetaOptions {
28 29
    std::string backend_uri;
    std::string dbname;
X
Xu Peng 已提交
30 31 32
}; // DBMetaOptions


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

#endif // VECENGINE_OPTIONS_H_