add namespace for thrift api

Former-commit-id: 92f9e0a0f7d2e301120573976984f99062b8f44e
pull/191/head
groot 2019-04-29 17:55:50 +08:00
parent e1efe942da
commit 231b216963
9 changed files with 25 additions and 12 deletions

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -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() {

View File

@ -6,12 +6,12 @@
*/
#include "VectorService_constants.h"
namespace zilliz {
const VectorServiceConstants g_VectorService_constants;
VectorServiceConstants::VectorServiceConstants() {
}
} // namespace

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -12,6 +12,7 @@
#include <time.h>
using namespace zilliz;
using namespace zilliz::vecwise;
namespace {