Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
f74f9bb0
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f74f9bb0
编写于
7月 26, 2019
作者:
K
kun yu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix errorcode bug
Former-commit-id: a96852ef86254e08549a683c65c6ec797a782b74
上级
bc08eb27
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
2639 addition
and
2645 deletion
+2639
-2645
cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc
cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc
+16
-80
cpp/src/grpc/gen-milvus/milvus.grpc.pb.h
cpp/src/grpc/gen-milvus/milvus.grpc.pb.h
+2
-90
cpp/src/grpc/gen-milvus/milvus.pb.cc
cpp/src/grpc/gen-milvus/milvus.pb.cc
+1663
-1350
cpp/src/grpc/gen-milvus/milvus.pb.h
cpp/src/grpc/gen-milvus/milvus.pb.h
+728
-902
cpp/src/grpc/gen-status/status.grpc.pb.h
cpp/src/grpc/gen-status/status.grpc.pb.h
+2
-10
cpp/src/grpc/gen-status/status.pb.cc
cpp/src/grpc/gen-status/status.pb.cc
+142
-110
cpp/src/grpc/gen-status/status.pb.h
cpp/src/grpc/gen-status/status.pb.h
+84
-100
cpp/src/server/grpc_impl/RequestScheduler.cpp
cpp/src/server/grpc_impl/RequestScheduler.cpp
+1
-2
cpp/start_server.sh
cpp/start_server.sh
+1
-1
未找到文件。
cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc
浏览文件 @
f74f9bb0
...
...
@@ -58,19 +58,11 @@ MilvusService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan
}
void
MilvusService
::
Stub
::
experimental_async
::
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_CreateTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_CreateTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_CreateTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_CreateTable_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_CreateTable_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_CreateTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
Status
>*
MilvusService
::
Stub
::
AsyncCreateTableRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -86,19 +78,11 @@ void MilvusService::Stub::experimental_async::CreateTable(::grpc::ClientContext*
}
void
MilvusService
::
Stub
::
experimental_async
::
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_HasTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_HasTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_HasTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_HasTable_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_HasTable_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_HasTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
BoolReply
>*
MilvusService
::
Stub
::
AsyncHasTableRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -114,19 +98,11 @@ void MilvusService::Stub::experimental_async::HasTable(::grpc::ClientContext* co
}
void
MilvusService
::
Stub
::
experimental_async
::
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DropTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DropTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DropTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DropTable_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DropTable_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DropTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
Status
>*
MilvusService
::
Stub
::
AsyncDropTableRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -142,19 +118,11 @@ void MilvusService::Stub::experimental_async::DropTable(::grpc::ClientContext* c
}
void
MilvusService
::
Stub
::
experimental_async
::
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_BuildIndex_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_BuildIndex_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_BuildIndex_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_BuildIndex_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_BuildIndex_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_BuildIndex_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
Status
>*
MilvusService
::
Stub
::
AsyncBuildIndexRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -170,19 +138,11 @@ void MilvusService::Stub::experimental_async::BuildIndex(::grpc::ClientContext*
}
void
MilvusService
::
Stub
::
experimental_async
::
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_InsertVector_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_InsertVector_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_InsertVector_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_InsertVector_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_InsertVector_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_InsertVector_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
VectorIds
>*
MilvusService
::
Stub
::
AsyncInsertVectorRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -230,19 +190,11 @@ void MilvusService::Stub::experimental_async::SearchVectorInFiles(::grpc::Client
}
void
MilvusService
::
Stub
::
experimental_async
::
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DescribeTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DescribeTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DescribeTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DescribeTable_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DescribeTable_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_DescribeTable_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
TableSchema
>*
MilvusService
::
Stub
::
AsyncDescribeTableRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -258,19 +210,11 @@ void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContex
}
void
MilvusService
::
Stub
::
experimental_async
::
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_GetTableRowCount_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_GetTableRowCount_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_GetTableRowCount_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_GetTableRowCount_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_GetTableRowCount_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_GetTableRowCount_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
TableRowCount
>*
MilvusService
::
Stub
::
AsyncGetTableRowCountRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
@@ -302,19 +246,11 @@ void MilvusService::Stub::experimental_async::ShowTables(::grpc::ClientContext*
}
void
MilvusService
::
Stub
::
experimental_async
::
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_Ping_
,
context
,
request
,
response
,
std
::
move
(
f
));
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_Ping_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
f
)
{
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_Ping_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
void
MilvusService
::
Stub
::
experimental_async
::
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_Ping_
,
context
,
request
,
response
,
reactor
);
}
void
MilvusService
::
Stub
::
experimental_async
::
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
{
::
grpc
::
internal
::
ClientCallbackUnaryFactory
::
Create
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_Ping_
,
context
,
request
,
response
,
reactor
);
return
::
grpc
::
internal
::
CallbackUnaryCall
(
stub_
->
channel_
.
get
(),
stub_
->
rpcmethod_Ping_
,
context
,
request
,
response
,
std
::
move
(
f
));
}
::
grpc
::
ClientAsyncResponseReader
<
::
milvus
::
grpc
::
ServerStatus
>*
MilvusService
::
Stub
::
AsyncPingRaw
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
&
request
,
::
grpc
::
CompletionQueue
*
cq
)
{
...
...
cpp/src/grpc/gen-milvus/milvus.grpc.pb.h
浏览文件 @
f74f9bb0
...
...
@@ -11,28 +11,20 @@
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/client_callback.h>
#include <grpcpp/impl/codegen/client_context.h>
#include <grpcpp/impl/codegen/method_handler_impl.h>
#include <grpcpp/impl/codegen/proto_utils.h>
#include <grpcpp/impl/codegen/rpc_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/server_context.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/status.h>
#include <grpcpp/impl/codegen/stub_options.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace
grpc
_impl
{
namespace
grpc
{
class
CompletionQueue
;
class
Channel
;
class
ServerCompletionQueue
;
class
ServerContext
;
}
// namespace grpc_impl
namespace
grpc
{
namespace
experimental
{
template
<
typename
RequestT
,
typename
ResponseT
>
class
MessageAllocator
;
}
// namespace experimental
}
// namespace grpc
namespace
milvus
{
...
...
@@ -229,8 +221,6 @@ class MilvusService final {
//
virtual
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief Test table existence method
//
...
...
@@ -240,8 +230,6 @@ class MilvusService final {
//
virtual
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief Delete table method
//
...
...
@@ -251,8 +239,6 @@ class MilvusService final {
//
virtual
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief Build index by table method
//
...
...
@@ -262,8 +248,6 @@ class MilvusService final {
//
virtual
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief Add vector array to table
//
...
...
@@ -275,8 +259,6 @@ class MilvusService final {
// @return vector id array
virtual
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief Query vector
//
...
...
@@ -311,8 +293,6 @@ class MilvusService final {
// @return table schema
virtual
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief Get table schema
//
...
...
@@ -323,8 +303,6 @@ class MilvusService final {
// @return table schema
virtual
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
// *
// @brief List all tables in database
//
...
...
@@ -341,8 +319,6 @@ class MilvusService final {
// @return Server status.
virtual
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
=
0
;
virtual
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
virtual
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
=
0
;
};
virtual
class
experimental_async_interface
*
experimental_async
()
{
return
nullptr
;
}
private:
...
...
@@ -463,39 +439,23 @@ class MilvusService final {
public:
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableSchema
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
CreateTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
HasTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
BoolReply
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
DropTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
BuildIndex
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
Status
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
InsertInfos
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
InsertVector
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
VectorIds
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
SearchVector
(
::
grpc
::
ClientContext
*
context
,
::
milvus
::
grpc
::
SearchVectorInfos
*
request
,
::
grpc
::
experimental
::
ClientReadReactor
<
::
milvus
::
grpc
::
TopKQueryResult
>*
reactor
)
override
;
void
SearchVectorInFiles
(
::
grpc
::
ClientContext
*
context
,
::
milvus
::
grpc
::
SearchVectorInFilesInfos
*
request
,
::
grpc
::
experimental
::
ClientReadReactor
<
::
milvus
::
grpc
::
TopKQueryResult
>*
reactor
)
override
;
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
DescribeTable
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableSchema
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
TableName
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
GetTableRowCount
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
TableRowCount
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
ShowTables
(
::
grpc
::
ClientContext
*
context
,
::
milvus
::
grpc
::
Command
*
request
,
::
grpc
::
experimental
::
ClientReadReactor
<
::
milvus
::
grpc
::
TableName
>*
reactor
)
override
;
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
std
::
function
<
void
(
::
grpc
::
Status
)
>
)
override
;
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
milvus
::
grpc
::
Command
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
void
Ping
(
::
grpc
::
ClientContext
*
context
,
const
::
grpc
::
ByteBuffer
*
request
,
::
milvus
::
grpc
::
ServerStatus
*
response
,
::
grpc
::
experimental
::
ClientUnaryReactor
*
reactor
)
override
;
private:
friend
class
Stub
;
explicit
experimental_async
(
Stub
*
stub
)
:
stub_
(
stub
)
{
}
...
...
@@ -886,12 +846,6 @@ class MilvusService final {
return
this
->
CreateTable
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_CreateTable
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
TableSchema
,
::
milvus
::
grpc
::
Status
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
TableSchema
,
::
milvus
::
grpc
::
Status
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
0
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_CreateTable
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -917,12 +871,6 @@ class MilvusService final {
return
this
->
HasTable
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_HasTable
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
BoolReply
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
BoolReply
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
1
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_HasTable
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -948,12 +896,6 @@ class MilvusService final {
return
this
->
DropTable
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_DropTable
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
Status
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
Status
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
2
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_DropTable
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -979,12 +921,6 @@ class MilvusService final {
return
this
->
BuildIndex
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_BuildIndex
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
Status
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
Status
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
3
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_BuildIndex
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -1010,12 +946,6 @@ class MilvusService final {
return
this
->
InsertVector
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_InsertVector
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
InsertInfos
,
::
milvus
::
grpc
::
VectorIds
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
InsertInfos
,
::
milvus
::
grpc
::
VectorIds
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
4
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_InsertVector
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -1085,12 +1015,6 @@ class MilvusService final {
return
this
->
DescribeTable
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_DescribeTable
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
TableSchema
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
TableSchema
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
7
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_DescribeTable
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -1116,12 +1040,6 @@ class MilvusService final {
return
this
->
GetTableRowCount
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_GetTableRowCount
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
TableRowCount
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
TableName
,
::
milvus
::
grpc
::
TableRowCount
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
8
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_GetTableRowCount
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
@@ -1169,12 +1087,6 @@ class MilvusService final {
return
this
->
Ping
(
context
,
request
,
response
,
controller
);
}));
}
void
SetMessageAllocatorFor_Ping
(
::
grpc
::
experimental
::
MessageAllocator
<
::
milvus
::
grpc
::
Command
,
::
milvus
::
grpc
::
ServerStatus
>*
allocator
)
{
static_cast
<::
grpc
::
internal
::
CallbackUnaryHandler
<
::
milvus
::
grpc
::
Command
,
::
milvus
::
grpc
::
ServerStatus
>*>
(
::
grpc
::
Service
::
experimental
().
GetHandler
(
10
))
->
SetMessageAllocator
(
allocator
);
}
~
ExperimentalWithCallbackMethod_Ping
()
override
{
BaseClassMustBeDerivedFromService
(
this
);
}
...
...
cpp/src/grpc/gen-milvus/milvus.pb.cc
浏览文件 @
f74f9bb0
此差异已折叠。
点击以展开。
cpp/src/grpc/gen-milvus/milvus.pb.h
浏览文件 @
f74f9bb0
此差异已折叠。
点击以展开。
cpp/src/grpc/gen-status/status.grpc.pb.h
浏览文件 @
f74f9bb0
...
...
@@ -11,28 +11,20 @@
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/client_callback.h>
#include <grpcpp/impl/codegen/client_context.h>
#include <grpcpp/impl/codegen/method_handler_impl.h>
#include <grpcpp/impl/codegen/proto_utils.h>
#include <grpcpp/impl/codegen/rpc_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/server_context.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/status.h>
#include <grpcpp/impl/codegen/stub_options.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace
grpc
_impl
{
namespace
grpc
{
class
CompletionQueue
;
class
Channel
;
class
ServerCompletionQueue
;
class
ServerContext
;
}
// namespace grpc_impl
namespace
grpc
{
namespace
experimental
{
template
<
typename
RequestT
,
typename
ResponseT
>
class
MessageAllocator
;
}
// namespace experimental
}
// namespace grpc
namespace
milvus
{
...
...
cpp/src/grpc/gen-status/status.pb.cc
浏览文件 @
f74f9bb0
此差异已折叠。
点击以展开。
cpp/src/grpc/gen-status/status.pb.h
浏览文件 @
f74f9bb0
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: status.proto
#ifndef
GOOGLE_
PROTOBUF_INCLUDED_status_2eproto
#define
GOOGLE_
PROTOBUF_INCLUDED_status_2eproto
#ifndef PROTOBUF_INCLUDED_status_2eproto
#define PROTOBUF_INCLUDED_status_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 300
8
000
#if PROTOBUF_VERSION < 300
7
000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 300
8
000 < PROTOBUF_MIN_PROTOC_VERSION
#if 300
7
000 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
...
...
@@ -27,7 +27,6 @@
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
...
...
@@ -36,25 +35,20 @@
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_status_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace
internal
{
class
AnyMetadata
;
}
// namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct
TableStruct_status_2eproto
{
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseTableField
entries
[]
static
const
::
google
::
protobuf
::
internal
::
ParseTableField
entries
[]
PROTOBUF_SECTION_VARIABLE
(
protodesc_cold
);
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
AuxillaryParseTableField
aux
[]
static
const
::
google
::
protobuf
::
internal
::
AuxillaryParseTableField
aux
[]
PROTOBUF_SECTION_VARIABLE
(
protodesc_cold
);
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseTable
schema
[
1
]
static
const
::
google
::
protobuf
::
internal
::
ParseTable
schema
[
1
]
PROTOBUF_SECTION_VARIABLE
(
protodesc_cold
);
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
FieldMetadata
field_metadata
[];
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
SerializationTable
serialization_table
[];
static
const
::
PROTOBUF_NAMESPACE_ID
::
uint32
offsets
[];
static
const
::
google
::
protobuf
::
internal
::
FieldMetadata
field_metadata
[];
static
const
::
google
::
protobuf
::
internal
::
SerializationTable
serialization_table
[];
static
const
::
google
::
protobuf
::
uint32
offsets
[];
};
extern
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
DescriptorTable
descriptor_table_status_2eproto
;
void
AddDescriptors_status_2eproto
()
;
namespace
milvus
{
namespace
grpc
{
class
Status
;
...
...
@@ -62,13 +56,15 @@ class StatusDefaultTypeInternal;
extern
StatusDefaultTypeInternal
_Status_default_instance_
;
}
// namespace grpc
}
// namespace milvus
PROTOBUF_NAMESPACE_OPEN
namespace
google
{
namespace
protobuf
{
template
<
>
::
milvus
::
grpc
::
Status
*
Arena
::
CreateMaybeMessage
<::
milvus
::
grpc
::
Status
>
(
Arena
*
);
PROTOBUF_NAMESPACE_CLOSE
}
// namespace protobuf
}
// namespace google
namespace
milvus
{
namespace
grpc
{
enum
ErrorCode
:
int
{
enum
ErrorCode
{
SUCCESS
=
0
,
UNEXPECTED_ERROR
=
1
,
CONNECT_FAILED
=
2
,
...
...
@@ -91,46 +87,44 @@ enum ErrorCode : int {
CANNOT_DELETE_FOLDER
=
19
,
CANNOT_DELETE_FILE
=
20
,
BUILD_INDEX_ERROR
=
21
,
ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_
=
std
::
numeric_limits
<::
PROTOBUF_NAMESPACE_ID
::
int32
>::
min
(),
ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_
=
std
::
numeric_limits
<::
PROTOBUF_NAMESPACE_ID
::
int32
>::
max
()
ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_
=
std
::
numeric_limits
<::
google
::
protobuf
::
int32
>::
min
(),
ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_
=
std
::
numeric_limits
<::
google
::
protobuf
::
int32
>::
max
()
};
bool
ErrorCode_IsValid
(
int
value
);
constexpr
ErrorCode
ErrorCode_MIN
=
SUCCESS
;
constexpr
ErrorCode
ErrorCode_MAX
=
BUILD_INDEX_ERROR
;
constexpr
int
ErrorCode_ARRAYSIZE
=
ErrorCode_MAX
+
1
;
const
::
PROTOBUF_NAMESPACE_ID
::
EnumDescriptor
*
ErrorCode_descriptor
();
template
<
typename
T
>
inline
const
std
::
string
&
ErrorCode_Name
(
T
enum_t_value
)
{
static_assert
(
::
std
::
is_same
<
T
,
ErrorCode
>::
value
||
::
std
::
is_integral
<
T
>::
value
,
"Incorrect type passed to function ErrorCode_Name."
);
return
::
PROTOBUF_NAMESPACE_ID
::
internal
::
NameOfEnum
(
ErrorCode_descriptor
(),
enum_t_value
);
const
ErrorCode
ErrorCode_MIN
=
SUCCESS
;
const
ErrorCode
ErrorCode_MAX
=
BUILD_INDEX_ERROR
;
const
int
ErrorCode_ARRAYSIZE
=
ErrorCode_MAX
+
1
;
const
::
google
::
protobuf
::
EnumDescriptor
*
ErrorCode_descriptor
();
inline
const
::
std
::
string
&
ErrorCode_Name
(
ErrorCode
value
)
{
return
::
google
::
protobuf
::
internal
::
NameOfEnum
(
ErrorCode_descriptor
(),
value
);
}
inline
bool
ErrorCode_Parse
(
const
std
::
string
&
name
,
ErrorCode
*
value
)
{
return
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseNamedEnum
<
ErrorCode
>
(
const
::
std
::
string
&
name
,
ErrorCode
*
value
)
{
return
::
google
::
protobuf
::
internal
::
ParseNamedEnum
<
ErrorCode
>
(
ErrorCode_descriptor
(),
name
,
value
);
}
// ===================================================================
class
Status
:
public
::
PROTOBUF_NAMESPACE_ID
::
Message
/* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */
{
class
Status
final
:
public
::
google
::
protobuf
::
Message
/* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */
{
public:
Status
();
virtual
~
Status
();
Status
(
const
Status
&
from
);
Status
(
Status
&&
from
)
noexcept
:
Status
()
{
*
this
=
::
std
::
move
(
from
);
}
inline
Status
&
operator
=
(
const
Status
&
from
)
{
CopyFrom
(
from
);
return
*
this
;
}
#if LANG_CXX11
Status
(
Status
&&
from
)
noexcept
:
Status
()
{
*
this
=
::
std
::
move
(
from
);
}
inline
Status
&
operator
=
(
Status
&&
from
)
noexcept
{
if
(
GetArenaNoVirtual
()
==
from
.
GetArenaNoVirtual
())
{
if
(
this
!=
&
from
)
InternalSwap
(
&
from
);
...
...
@@ -139,15 +133,9 @@ class Status :
}
return
*
this
;
}
static
const
::
PROTOBUF_NAMESPACE_ID
::
Descriptor
*
descriptor
()
{
return
GetDescriptor
();
}
static
const
::
PROTOBUF_NAMESPACE_ID
::
Descriptor
*
GetDescriptor
()
{
return
GetMetadataStatic
().
descriptor
;
}
static
const
::
PROTOBUF_NAMESPACE_ID
::
Reflection
*
GetReflection
()
{
return
GetMetadataStatic
().
reflection
;
#endif
static
const
::
google
::
protobuf
::
Descriptor
*
descriptor
()
{
return
default_instance
().
GetDescriptor
();
}
static
const
Status
&
default_instance
();
...
...
@@ -170,11 +158,11 @@ class Status :
return
CreateMaybeMessage
<
Status
>
(
nullptr
);
}
Status
*
New
(
::
PROTOBUF_NAMESPACE_ID
::
Arena
*
arena
)
const
final
{
Status
*
New
(
::
google
::
protobuf
::
Arena
*
arena
)
const
final
{
return
CreateMaybeMessage
<
Status
>
(
arena
);
}
void
CopyFrom
(
const
::
PROTOBUF_NAMESPACE_ID
::
Message
&
from
)
final
;
void
MergeFrom
(
const
::
PROTOBUF_NAMESPACE_ID
::
Message
&
from
)
final
;
void
CopyFrom
(
const
::
google
::
protobuf
::
Message
&
from
)
final
;
void
MergeFrom
(
const
::
google
::
protobuf
::
Message
&
from
)
final
;
void
CopyFrom
(
const
Status
&
from
);
void
MergeFrom
(
const
Status
&
from
);
PROTOBUF_ATTRIBUTE_REINITIALIZES
void
Clear
()
final
;
...
...
@@ -182,28 +170,25 @@ class Status :
size_t
ByteSizeLong
()
const
final
;
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const
char
*
_InternalParse
(
const
char
*
ptr
,
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseContext
*
ctx
)
final
;
static
const
char
*
_InternalParse
(
const
char
*
begin
,
const
char
*
end
,
void
*
object
,
::
google
::
protobuf
::
internal
::
ParseContext
*
ctx
);
::
google
::
protobuf
::
internal
::
ParseFunc
_ParseFunc
()
const
final
{
return
_InternalParse
;
}
#else
bool
MergePartialFromCodedStream
(
::
PROTOBUF_NAMESPACE_ID
::
io
::
CodedInputStream
*
input
)
final
;
::
google
::
protobuf
::
io
::
CodedInputStream
*
input
)
final
;
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void
SerializeWithCachedSizes
(
::
PROTOBUF_NAMESPACE_ID
::
io
::
CodedOutputStream
*
output
)
const
final
;
::
PROTOBUF_NAMESPACE_ID
::
uint8
*
InternalSerializeWithCachedSizesToArray
(
::
PROTOBUF_NAMESPACE_ID
::
uint8
*
target
)
const
final
;
::
google
::
protobuf
::
io
::
CodedOutputStream
*
output
)
const
final
;
::
google
::
protobuf
::
uint8
*
InternalSerializeWithCachedSizesToArray
(
::
google
::
protobuf
::
uint8
*
target
)
const
final
;
int
GetCachedSize
()
const
final
{
return
_cached_size_
.
Get
();
}
private:
inline
void
SharedCtor
();
inline
void
SharedDtor
();
void
SharedCtor
();
void
SharedDtor
();
void
SetCachedSize
(
int
size
)
const
final
;
void
InternalSwap
(
Status
*
other
);
friend
class
::
PROTOBUF_NAMESPACE_ID
::
internal
::
AnyMetadata
;
static
::
PROTOBUF_NAMESPACE_ID
::
StringPiece
FullMessageName
()
{
return
"milvus.grpc.Status"
;
}
private:
inline
::
PROTOBUF_NAMESPACE_ID
::
Arena
*
GetArenaNoVirtual
()
const
{
inline
::
google
::
protobuf
::
Arena
*
GetArenaNoVirtual
()
const
{
return
nullptr
;
}
inline
void
*
MaybeArenaPtr
()
const
{
...
...
@@ -211,14 +196,7 @@ class Status :
}
public:
::
PROTOBUF_NAMESPACE_ID
::
Metadata
GetMetadata
()
const
final
;
private:
static
::
PROTOBUF_NAMESPACE_ID
::
Metadata
GetMetadataStatic
()
{
::
PROTOBUF_NAMESPACE_ID
::
internal
::
AssignDescriptors
(
&::
descriptor_table_status_2eproto
);
return
::
descriptor_table_status_2eproto
.
file_level_metadata
[
kIndexInFileMessages
];
}
public:
::
google
::
protobuf
::
Metadata
GetMetadata
()
const
final
;
// nested types ----------------------------------------------------
...
...
@@ -227,14 +205,16 @@ class Status :
// string reason = 2;
void
clear_reason
();
static
const
int
kReasonFieldNumber
=
2
;
const
std
::
string
&
reason
()
const
;
void
set_reason
(
const
std
::
string
&
value
);
void
set_reason
(
std
::
string
&&
value
);
const
::
std
::
string
&
reason
()
const
;
void
set_reason
(
const
::
std
::
string
&
value
);
#if LANG_CXX11
void
set_reason
(
::
std
::
string
&&
value
);
#endif
void
set_reason
(
const
char
*
value
);
void
set_reason
(
const
char
*
value
,
size_t
size
);
std
::
string
*
mutable_reason
();
std
::
string
*
release_reason
();
void
set_allocated_reason
(
std
::
string
*
reason
);
::
std
::
string
*
mutable_reason
();
::
std
::
string
*
release_reason
();
void
set_allocated_reason
(
::
std
::
string
*
reason
);
// .milvus.grpc.ErrorCode error_code = 1;
void
clear_error_code
();
...
...
@@ -246,10 +226,10 @@ class Status :
private:
class
HasBitSetters
;
::
PROTOBUF_NAMESPACE_ID
::
internal
::
InternalMetadataWithArena
_internal_metadata_
;
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ArenaStringPtr
reason_
;
::
google
::
protobuf
::
internal
::
InternalMetadataWithArena
_internal_metadata_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
reason_
;
int
error_code_
;
mutable
::
PROTOBUF_NAMESPACE_ID
::
internal
::
CachedSize
_cached_size_
;
mutable
::
google
::
protobuf
::
internal
::
CachedSize
_cached_size_
;
friend
struct
::
TableStruct_status_2eproto
;
};
// ===================================================================
...
...
@@ -279,52 +259,54 @@ inline void Status::set_error_code(::milvus::grpc::ErrorCode value) {
// string reason = 2;
inline
void
Status
::
clear_reason
()
{
reason_
.
ClearToEmptyNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
());
reason_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
const
std
::
string
&
Status
::
reason
()
const
{
inline
const
::
std
::
string
&
Status
::
reason
()
const
{
// @@protoc_insertion_point(field_get:milvus.grpc.Status.reason)
return
reason_
.
GetNoArena
();
}
inline
void
Status
::
set_reason
(
const
std
::
string
&
value
)
{
inline
void
Status
::
set_reason
(
const
::
std
::
string
&
value
)
{
reason_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
value
);
reason_
.
SetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
value
);
// @@protoc_insertion_point(field_set:milvus.grpc.Status.reason)
}
inline
void
Status
::
set_reason
(
std
::
string
&&
value
)
{
#if LANG_CXX11
inline
void
Status
::
set_reason
(
::
std
::
string
&&
value
)
{
reason_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
move
(
value
));
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
move
(
value
));
// @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Status.reason)
}
#endif
inline
void
Status
::
set_reason
(
const
char
*
value
)
{
GOOGLE_DCHECK
(
value
!=
nullptr
);
reason_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
value
));
reason_
.
SetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
value
));
// @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason)
}
inline
void
Status
::
set_reason
(
const
char
*
value
,
size_t
size
)
{
reason_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
reason_
.
SetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
reinterpret_cast
<
const
char
*>
(
value
),
size
));
// @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason)
}
inline
std
::
string
*
Status
::
mutable_reason
()
{
inline
::
std
::
string
*
Status
::
mutable_reason
()
{
// @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason)
return
reason_
.
MutableNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
());
return
reason_
.
MutableNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
std
::
string
*
Status
::
release_reason
()
{
inline
::
std
::
string
*
Status
::
release_reason
()
{
// @@protoc_insertion_point(field_release:milvus.grpc.Status.reason)
return
reason_
.
ReleaseNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
());
return
reason_
.
ReleaseNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
void
Status
::
set_allocated_reason
(
std
::
string
*
reason
)
{
inline
void
Status
::
set_allocated_reason
(
::
std
::
string
*
reason
)
{
if
(
reason
!=
nullptr
)
{
}
else
{
}
reason_
.
SetAllocatedNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
reason
);
reason_
.
SetAllocatedNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
reason
);
// @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason)
}
...
...
@@ -337,7 +319,8 @@ inline void Status::set_allocated_reason(std::string* reason) {
}
// namespace grpc
}
// namespace milvus
PROTOBUF_NAMESPACE_OPEN
namespace
google
{
namespace
protobuf
{
template
<
>
struct
is_proto_enum
<
::
milvus
::
grpc
::
ErrorCode
>
:
::
std
::
true_type
{};
template
<
>
...
...
@@ -345,9 +328,10 @@ inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() {
return
::
milvus
::
grpc
::
ErrorCode_descriptor
();
}
PROTOBUF_NAMESPACE_CLOSE
}
// namespace protobuf
}
// namespace google
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif //
GOOGLE_PROTOBUF_INCLUDED_GOOGLE_
PROTOBUF_INCLUDED_status_2eproto
#endif // PROTOBUF_INCLUDED_status_2eproto
cpp/src/server/grpc_impl/RequestScheduler.cpp
浏览文件 @
f74f9bb0
...
...
@@ -102,13 +102,12 @@ void RequestScheduler::ExecTask(BaseTaskPtr& task_ptr, ::milvus::grpc::Status *g
RequestScheduler
&
scheduler
=
RequestScheduler
::
GetInstance
();
scheduler
.
ExecuteTask
(
task_ptr
);
if
(
!
task_ptr
->
IsAsync
())
{
task_ptr
->
WaitToFinish
();
ServerError
err
=
task_ptr
->
ErrorCode
();
if
(
err
!=
SERVER_SUCCESS
)
{
grpc_status
->
set_reason
(
task_ptr
->
ErrorMsg
());
grpc_status
->
set_error_code
(
::
milvus
::
grpc
::
ErrorCode
((
int
)
err
));
grpc_status
->
set_error_code
(
ErrorMap
().
at
(
err
));
}
else
{
// grpc_status->set_error_code(::milvus::ErrorCode((int) SERVER_SUCCESS));
}
...
...
cpp/start_server.sh
浏览文件 @
f74f9bb0
#!/bin/bash
./cmake_build/src/milvus_server
-c
./conf/server_config.yaml
-l
./conf/log_config.conf &
./cmake_build/src/milvus_
grpc_
server
-c
./conf/server_config.yaml
-l
./conf/log_config.conf &
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录