mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-31 16:05:30 +08:00
28 lines
733 B
C++
28 lines
733 B
C++
/*******************************************************************************
|
|
* Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
* Proprietary and confidential.
|
|
******************************************************************************/
|
|
#pragma once
|
|
|
|
#include <map>
|
|
|
|
#include "Error.h"
|
|
|
|
namespace zilliz {
|
|
namespace vecwise {
|
|
namespace server {
|
|
|
|
using AttribMap = std::map<std::string, std::string>;
|
|
|
|
class AttributeSerializer {
|
|
public:
|
|
static ServerError Encode(const AttribMap& attrib_map, std::string& attrib_str);
|
|
static ServerError Decode(const std::string& attrib_str, AttribMap& attrib_map);
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
}
|