diff --git a/cpp/src/thrift/VectorService.thrift b/cpp/src/thrift/VectorService.thrift index 36bab9c69f7b560e0f12d1094a8a4bf7ee4d7df1..4608e288f23707a0f0f33857e67fd9e5a3c22646 100644 --- a/cpp/src/thrift/VectorService.thrift +++ b/cpp/src/thrift/VectorService.thrift @@ -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, diff --git a/cpp/src/thrift/gen-cpp/VecService.cpp b/cpp/src/thrift/gen-cpp/VecService.cpp index 71168f9d2534452fe6d881e47661124397383f68..78c1021af225d98dfeaf28faf38723c6d04a290b 100644 --- a/cpp/src/thrift/gen-cpp/VecService.cpp +++ b/cpp/src/thrift/gen-cpp/VecService.cpp @@ -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 diff --git a/cpp/src/thrift/gen-cpp/VecService.h b/cpp/src/thrift/gen-cpp/VecService.h index d1bfc68d9ddcfdb088938a489bb98d109b377236..be30631e6a03b5e6fa8e9c78209471ec2eb5049f 100644 --- a/cpp/src/thrift/gen-cpp/VecService.h +++ b/cpp/src/thrift/gen-cpp/VecService.h @@ -11,7 +11,7 @@ #include #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 diff --git a/cpp/src/thrift/gen-cpp/VecService_server.skeleton.cpp b/cpp/src/thrift/gen-cpp/VecService_server.skeleton.cpp index 8cd2e03b161ed2802307a0bebc01aa8c12c374f6..f87088d3882e2f226da5ed185d7b58a770310644 100644 --- a/cpp/src/thrift/gen-cpp/VecService_server.skeleton.cpp +++ b/cpp/src/thrift/gen-cpp/VecService_server.skeleton.cpp @@ -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() { diff --git a/cpp/src/thrift/gen-cpp/VectorService_constants.cpp b/cpp/src/thrift/gen-cpp/VectorService_constants.cpp index b9275d5961d86ee88d70f3757cdafa84823e8676..3ae3e76ba9659309be8fbf337ddc10f4cc4d0182 100644 --- a/cpp/src/thrift/gen-cpp/VectorService_constants.cpp +++ b/cpp/src/thrift/gen-cpp/VectorService_constants.cpp @@ -6,12 +6,12 @@ */ #include "VectorService_constants.h" - +namespace zilliz { const VectorServiceConstants g_VectorService_constants; VectorServiceConstants::VectorServiceConstants() { } - +} // namespace diff --git a/cpp/src/thrift/gen-cpp/VectorService_constants.h b/cpp/src/thrift/gen-cpp/VectorService_constants.h index 501980cbfee4f684051157e4fa48767af5ee4ddf..3b950c228e920a6eb747a865287a9d295d2a559a 100644 --- a/cpp/src/thrift/gen-cpp/VectorService_constants.h +++ b/cpp/src/thrift/gen-cpp/VectorService_constants.h @@ -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 diff --git a/cpp/src/thrift/gen-cpp/VectorService_types.cpp b/cpp/src/thrift/gen-cpp/VectorService_types.cpp index 61a4f4e08194eb31df9f3f923ae8271ba759be8b..1db0f177eda3448ce4219af99043936a8a6d9ea1 100644 --- a/cpp/src/thrift/gen-cpp/VectorService_types.cpp +++ b/cpp/src/thrift/gen-cpp/VectorService_types.cpp @@ -11,7 +11,7 @@ #include - +namespace zilliz { int _kVecErrCodeValues[] = { VecErrCode::SUCCESS, @@ -1793,4 +1793,4 @@ void VecSearchFilter::printTo(std::ostream& out) const { out << ")"; } - +} // namespace diff --git a/cpp/src/thrift/gen-cpp/VectorService_types.h b/cpp/src/thrift/gen-cpp/VectorService_types.h index cbc996f07c107590b36963243fafc2989a97d57b..b59d95c476dbf5daa66d0fc7f5add7bd164c9907 100644 --- a/cpp/src/thrift/gen-cpp/VectorService_types.h +++ b/cpp/src/thrift/gen-cpp/VectorService_types.h @@ -18,7 +18,7 @@ #include - +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 diff --git a/cpp/test_client/src/ClientTest.cpp b/cpp/test_client/src/ClientTest.cpp index 7ef62a068012c70130176388dff4acdfd95c3f7e..37f1764afc9224b4655033c846798c8eae7f920b 100644 --- a/cpp/test_client/src/ClientTest.cpp +++ b/cpp/test_client/src/ClientTest.cpp @@ -12,6 +12,7 @@ #include +using namespace zilliz; using namespace zilliz::vecwise; namespace {