ExecutionEngine.h 667 字节
Newer Older
X
Xu Peng 已提交
1 2 3 4
#pragma once

#include <vector>

X
Xu Peng 已提交
5 6
#include "Status.h"

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

X
Xu Peng 已提交
11
class ExecutionEngine {
X
Xu Peng 已提交
12 13
public:

X
Xu Peng 已提交
14
    Status AddWithIds(const std::vector<float>& vectors,
X
Xu Peng 已提交
15 16
                              const std::vector<long>& vector_ids);

X
Xu Peng 已提交
17 18 19 20 21 22 23
    virtual Status AddWithIds(long n, const float *xdata, const long *xids) = 0;

    virtual size_t Count() const = 0;

    virtual size_t Size() const = 0;

    virtual Status Serialize() = 0;
X
Xu Peng 已提交
24

25 26
    virtual Status Merge(const std::string& location) = 0;

X
Xu Peng 已提交
27 28
    virtual Status Cache() = 0;

X
Xu Peng 已提交
29
    virtual ~ExecutionEngine() {}
X
Xu Peng 已提交
30 31 32 33 34 35
};


} // namespace engine
} // namespace vecwise
} // namespace zilliz