提交 231b2169 编写于 作者: G groot

add namespace for thrift api


Former-commit-id: 92f9e0a0f7d2e301120573976984f99062b8f44e
上级 e1efe942
......@@ -3,6 +3,16 @@
* Unauthorized copying of this file, via any medium is strictly prohibited.
* Proprietary and confidential.
******************************************************************************/
namespace cl zilliz
namespace cpp zilliz
namespace py zilliz
namespace d zilliz
namespace dart zilliz
namespace java zilliz
namespace perl zilliz
namespace php zilliz
namespace haxe zilliz
namespace netcore zilliz
enum VecErrCode {
SUCCESS = 0,
......
......@@ -6,7 +6,7 @@
*/
#include "VecService.h"
namespace zilliz {
VecService_add_group_args::~VecService_add_group_args() throw() {
......@@ -4673,5 +4673,5 @@ void VecServiceConcurrentClient::recv_search_binary_vector_batch(VecSearchResult
} // end while(true)
}
} // namespace
......@@ -11,7 +11,7 @@
#include <thrift/async/TConcurrentClientSyncInfo.h>
#include "VectorService_types.h"
namespace zilliz {
#ifdef _MSC_VER
#pragma warning( push )
......@@ -1725,6 +1725,6 @@ class VecServiceConcurrentClient : virtual public VecServiceIf {
#pragma warning( pop )
#endif
} // namespace
#endif
......@@ -12,6 +12,8 @@ using namespace ::apache::thrift::protocol;
using namespace ::apache::thrift::transport;
using namespace ::apache::thrift::server;
using namespace ::zilliz;
class VecServiceHandler : virtual public VecServiceIf {
public:
VecServiceHandler() {
......
......@@ -6,12 +6,12 @@
*/
#include "VectorService_constants.h"
namespace zilliz {
const VectorServiceConstants g_VectorService_constants;
VectorServiceConstants::VectorServiceConstants() {
}
} // namespace
......@@ -9,7 +9,7 @@
#include "VectorService_types.h"
namespace zilliz {
class VectorServiceConstants {
public:
......@@ -19,6 +19,6 @@ class VectorServiceConstants {
extern const VectorServiceConstants g_VectorService_constants;
} // namespace
#endif
......@@ -11,7 +11,7 @@
#include <thrift/TToString.h>
namespace zilliz {
int _kVecErrCodeValues[] = {
VecErrCode::SUCCESS,
......@@ -1793,4 +1793,4 @@ void VecSearchFilter::printTo(std::ostream& out) const {
out << ")";
}
} // namespace
......@@ -18,7 +18,7 @@
#include <thrift/stdcxx.h>
namespace zilliz {
struct VecErrCode {
enum type {
......@@ -648,6 +648,6 @@ void swap(VecSearchFilter &a, VecSearchFilter &b);
std::ostream& operator<<(std::ostream& out, const VecSearchFilter& obj);
} // namespace
#endif
......@@ -12,6 +12,7 @@
#include <time.h>
using namespace zilliz;
using namespace zilliz::vecwise;
namespace {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册