//////////////////////////////////////////////////////////////////////////////// // Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved // Unauthorized copying of this file, via any medium is strictly prohibited. // Proprietary and confidential. //////////////////////////////////////////////////////////////////////////////// #pragma once #include #include #include #include namespace zilliz { namespace vecwise { namespace engine { struct Operand { friend std::ostream &operator<<(std::ostream &os, const Operand &obj); friend std::istream &operator>>(std::istream &is, Operand &obj); int d; std::string index_type = "IVF13864,Flat"; std::string metric_type = "L2"; //> L2 / Inner Product std::string preproc; std::string postproc; int ncent; }; using Operand_ptr = std::shared_ptr; extern std::string operand_to_str(const Operand_ptr &opd); extern Operand_ptr str_to_operand(const std::string &input); } } }