Serializer.h 425 字节
Newer Older
X
Xu Peng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#pragma once

#include <vector>

namespace zilliz {
namespace vecwise {
namespace engine {

class Serializer {
public:

    bool AddWithIds(const std::vector<float>& vectors,
                              const std::vector<long>& vector_ids);

    virtual bool AddWithIds(long n, const float *xdata, const long *xids) = 0;

    virtual ~Serializer() {}
};


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