Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
e6225a70
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e6225a70
编写于
1月 15, 2021
作者:
D
dragondriver
提交者:
yefu.chen
1月 15, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add service interface to milvus.proto
Signed-off-by:
N
dragondriver
<
jiquan.long@zilliz.com
>
上级
31178d6a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
1397 addition
and
115 deletion
+1397
-115
internal/proto/milvus.proto
internal/proto/milvus.proto
+72
-3
internal/proto/milvuspb/milvus.pb.go
internal/proto/milvuspb/milvus.pb.go
+1255
-112
internal/proxyservice/interface.go
internal/proxyservice/interface.go
+16
-0
internal/proxyservice/proxyservice.go
internal/proxyservice/proxyservice.go
+54
-0
未找到文件。
internal/proto/milvus.proto
浏览文件 @
e6225a70
...
...
@@ -5,11 +5,13 @@ option go_package = "github.com/zilliztech/milvus-distributed/internal/proto/mil
import
"common.proto"
;
import
"internal.proto"
;
import
"schema.proto"
;
message
CreateCollectionRequest
{
internal.MsgBase
base
=
1
;
string
db_name
=
2
;
string
collectionName
=
3
;
// `schema` is the serialized `schema.CollectionSchema`
bytes
schema
=
4
;
}
...
...
@@ -26,6 +28,11 @@ message HasCollectionRequest {
string
collection_name
=
3
;
}
message
BoolResponse
{
common.Status
status
=
1
;
bool
value
=
2
;
}
message
DescribeCollectionRequest
{
internal.MsgBase
base
=
1
;
string
db_name
=
2
;
...
...
@@ -33,7 +40,8 @@ message DescribeCollectionRequest {
}
message
DescribeCollectionResponse
{
repeated
bytes
schema
=
1
;
common.Status
status
=
1
;
schema.CollectionSchema
schema
=
2
;
}
message
LoadCollectionRequest
{
...
...
@@ -56,6 +64,7 @@ message CollectionStatsRequest {
message
CollectionStatsResponse
{
repeated
common.KeyValuePair
stats
=
1
;
common.Status
status
=
2
;
}
...
...
@@ -66,6 +75,7 @@ message ShowCollectionRequest {
message
ShowCollectionResponse
{
repeated
string
collection_names
=
1
;
common.Status
status
=
2
;
}
...
...
@@ -114,6 +124,7 @@ message PartitionStatsRequest {
message
PartitionStatsResponse
{
repeated
common.KeyValuePair
stats
=
1
;
common.Status
status
=
2
;
}
message
ShowPartitionRequest
{
...
...
@@ -124,6 +135,7 @@ message ShowPartitionRequest {
message
ShowPartitionResponse
{
repeated
string
partition_names
=
1
;
common.Status
status
=
2
;
}
...
...
@@ -149,6 +161,7 @@ message IndexDescription {
message
DescribeIndexResponse
{
repeated
IndexDescription
index_descriptions
=
1
;
common.Status
status
=
2
;
}
message
InsertRequest
{
...
...
@@ -163,6 +176,24 @@ message InsertRequest {
message
InsertResponse
{
int64
rowID_begin
=
1
;
int64
rowID_end
=
2
;
common.Status
status
=
3
;
}
enum
PlaceholderType
{
NONE
=
0
;
VECTOR_BINARY
=
100
;
VECTOR_FLOAT
=
101
;
}
message
PlaceholderValue
{
string
tag
=
1
;
PlaceholderType
type
=
2
;
// values is a 2d-array, every array contains a vector
repeated
bytes
values
=
3
;
}
message
PlaceholderGroup
{
repeated
PlaceholderValue
placeholders
=
1
;
}
message
SearchRequest
{
...
...
@@ -171,11 +202,49 @@ message SearchRequest {
string
collection_name
=
3
;
repeated
string
partition_names
=
4
;
string
dsl
=
5
;
repeated
bytes
placeholder_group
=
6
;
// serialized `PlaceholderGroup`
bytes
placeholder_group
=
6
;
}
message
Hits
{
repeated
int64
IDs
=
1
;
repeated
bytes
row_data
=
2
;
repeated
float
scores
=
3
;
}
message
QueryResult
{
common.Status
status
=
1
;
repeated
bytes
hits
=
2
;
}
message
FlushRequest
{
internal.MsgBase
base
=
1
;
string
db_name
=
2
;
string
collection_name
=
3
;
}
\ No newline at end of file
}
service
MilvusService
{
rpc
CreateCollection
(
CreateCollectionRequest
)
returns
(
common.Status
)
{}
rpc
DropCollection
(
DropCollectionRequest
)
returns
(
common.Status
)
{}
rpc
HasCollection
(
HasCollectionRequest
)
returns
(
BoolResponse
)
{}
rpc
LoadCollection
(
LoadCollectionRequest
)
returns
(
common.Status
)
{}
rpc
ReleaseCollection
(
ReleaseCollectionRequest
)
returns
(
common.Status
)
{}
rpc
DescribeCollection
(
DescribeCollectionRequest
)
returns
(
DescribeCollectionResponse
)
{}
rpc
GetCollectionStatistics
(
CollectionStatsRequest
)
returns
(
CollectionStatsResponse
)
{}
rpc
ShowCollections
(
ShowCollectionRequest
)
returns
(
ShowCollectionResponse
)
{}
rpc
CreatePartition
(
CreatePartitionRequest
)
returns
(
common.Status
)
{}
rpc
DropPartition
(
DropPartitionRequest
)
returns
(
common.Status
)
{}
rpc
HasPartition
(
HasPartitionRequest
)
returns
(
BoolResponse
)
{}
rpc
LoadPartitions
(
LoadPartitonRequest
)
returns
(
common.Status
)
{}
rpc
ReleasePartitions
(
ReleasePartitionRequest
)
returns
(
common.Status
)
{}
rpc
GetPartitionStatistics
(
PartitionStatsRequest
)
returns
(
PartitionStatsResponse
)
{}
rpc
ShowPartitions
(
ShowPartitionRequest
)
returns
(
ShowPartitionResponse
)
{}
rpc
CreateIndex
(
CreateIndexRequest
)
returns
(
common.Status
)
{}
rpc
DescribeIndex
(
DescribeIndexRequest
)
returns
(
DescribeIndexResponse
)
{}
rpc
Insert
(
InsertRequest
)
returns
(
InsertResponse
)
{}
rpc
Search
(
SearchRequest
)
returns
(
QueryResult
)
{}
rpc
Flush
(
FlushRequest
)
returns
(
common.Status
)
{}
}
internal/proto/milvuspb/milvus.pb.go
浏览文件 @
e6225a70
...
...
@@ -4,10 +4,15 @@
package
milvuspb
import
(
context
"context"
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
commonpb
"github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
internalpb2
"github.com/zilliztech/milvus-distributed/internal/proto/internalpb2"
schemapb
"github.com/zilliztech/milvus-distributed/internal/proto/schemapb"
grpc
"google.golang.org/grpc"
codes
"google.golang.org/grpc/codes"
status
"google.golang.org/grpc/status"
math
"math"
)
...
...
@@ -22,14 +27,43 @@ var _ = math.Inf
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion3
// please upgrade the proto package
type
PlaceholderType
int32
const
(
PlaceholderType_NONE
PlaceholderType
=
0
PlaceholderType_VECTOR_BINARY
PlaceholderType
=
100
PlaceholderType_VECTOR_FLOAT
PlaceholderType
=
101
)
var
PlaceholderType_name
=
map
[
int32
]
string
{
0
:
"NONE"
,
100
:
"VECTOR_BINARY"
,
101
:
"VECTOR_FLOAT"
,
}
var
PlaceholderType_value
=
map
[
string
]
int32
{
"NONE"
:
0
,
"VECTOR_BINARY"
:
100
,
"VECTOR_FLOAT"
:
101
,
}
func
(
x
PlaceholderType
)
String
()
string
{
return
proto
.
EnumName
(
PlaceholderType_name
,
int32
(
x
))
}
func
(
PlaceholderType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
0
}
}
type
CreateCollectionRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
CollectionName
string
`protobuf:"bytes,3,opt,name=collectionName,proto3" json:"collectionName,omitempty"`
Schema
[]
byte
`protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
CollectionName
string
`protobuf:"bytes,3,opt,name=collectionName,proto3" json:"collectionName,omitempty"`
// `schema` is the serialized `schema.CollectionSchema`
Schema
[]
byte
`protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
CreateCollectionRequest
)
Reset
()
{
*
m
=
CreateCollectionRequest
{}
}
...
...
@@ -195,6 +229,53 @@ func (m *HasCollectionRequest) GetCollectionName() string {
return
""
}
type
BoolResponse
struct
{
Status
*
commonpb
.
Status
`protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Value
bool
`protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
BoolResponse
)
Reset
()
{
*
m
=
BoolResponse
{}
}
func
(
m
*
BoolResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
BoolResponse
)
ProtoMessage
()
{}
func
(
*
BoolResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
3
}
}
func
(
m
*
BoolResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_BoolResponse
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
BoolResponse
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_BoolResponse
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
BoolResponse
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_BoolResponse
.
Merge
(
m
,
src
)
}
func
(
m
*
BoolResponse
)
XXX_Size
()
int
{
return
xxx_messageInfo_BoolResponse
.
Size
(
m
)
}
func
(
m
*
BoolResponse
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_BoolResponse
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_BoolResponse
proto
.
InternalMessageInfo
func
(
m
*
BoolResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
func
(
m
*
BoolResponse
)
GetValue
()
bool
{
if
m
!=
nil
{
return
m
.
Value
}
return
false
}
type
DescribeCollectionRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -208,7 +289,7 @@ func (m *DescribeCollectionRequest) Reset() { *m = DescribeCollectionReq
func
(
m
*
DescribeCollectionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DescribeCollectionRequest
)
ProtoMessage
()
{}
func
(
*
DescribeCollectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
3
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
4
}
}
func
(
m
*
DescribeCollectionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -251,17 +332,18 @@ func (m *DescribeCollectionRequest) GetCollectionName() string {
}
type
DescribeCollectionResponse
struct
{
Schema
[][]
byte
`protobuf:"bytes,1,rep,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
Status
*
commonpb
.
Status
`protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Schema
*
schemapb
.
CollectionSchema
`protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
DescribeCollectionResponse
)
Reset
()
{
*
m
=
DescribeCollectionResponse
{}
}
func
(
m
*
DescribeCollectionResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DescribeCollectionResponse
)
ProtoMessage
()
{}
func
(
*
DescribeCollectionResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
4
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
5
}
}
func
(
m
*
DescribeCollectionResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -282,7 +364,14 @@ func (m *DescribeCollectionResponse) XXX_DiscardUnknown() {
var
xxx_messageInfo_DescribeCollectionResponse
proto
.
InternalMessageInfo
func
(
m
*
DescribeCollectionResponse
)
GetSchema
()
[][]
byte
{
func
(
m
*
DescribeCollectionResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
func
(
m
*
DescribeCollectionResponse
)
GetSchema
()
*
schemapb
.
CollectionSchema
{
if
m
!=
nil
{
return
m
.
Schema
}
...
...
@@ -302,7 +391,7 @@ func (m *LoadCollectionRequest) Reset() { *m = LoadCollectionRequest{} }
func
(
m
*
LoadCollectionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LoadCollectionRequest
)
ProtoMessage
()
{}
func
(
*
LoadCollectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
5
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
6
}
}
func
(
m
*
LoadCollectionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -357,7 +446,7 @@ func (m *ReleaseCollectionRequest) Reset() { *m = ReleaseCollectionReque
func
(
m
*
ReleaseCollectionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReleaseCollectionRequest
)
ProtoMessage
()
{}
func
(
*
ReleaseCollectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
6
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
7
}
}
func
(
m
*
ReleaseCollectionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -412,7 +501,7 @@ func (m *CollectionStatsRequest) Reset() { *m = CollectionStatsRequest{}
func
(
m
*
CollectionStatsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CollectionStatsRequest
)
ProtoMessage
()
{}
func
(
*
CollectionStatsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
7
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
8
}
}
func
(
m
*
CollectionStatsRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -456,6 +545,7 @@ func (m *CollectionStatsRequest) GetCollectionName() string {
type
CollectionStatsResponse
struct
{
Stats
[]
*
commonpb
.
KeyValuePair
`protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
Status
*
commonpb
.
Status
`protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -465,7 +555,7 @@ func (m *CollectionStatsResponse) Reset() { *m = CollectionStatsResponse
func
(
m
*
CollectionStatsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CollectionStatsResponse
)
ProtoMessage
()
{}
func
(
*
CollectionStatsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
8
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
9
}
}
func
(
m
*
CollectionStatsResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -493,6 +583,13 @@ func (m *CollectionStatsResponse) GetStats() []*commonpb.KeyValuePair {
return
nil
}
func
(
m
*
CollectionStatsResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
type
ShowCollectionRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -505,7 +602,7 @@ func (m *ShowCollectionRequest) Reset() { *m = ShowCollectionRequest{} }
func
(
m
*
ShowCollectionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ShowCollectionRequest
)
ProtoMessage
()
{}
func
(
*
ShowCollectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
9
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
10
}
}
func
(
m
*
ShowCollectionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -541,17 +638,18 @@ func (m *ShowCollectionRequest) GetDbName() string {
}
type
ShowCollectionResponse
struct
{
CollectionNames
[]
string
`protobuf:"bytes,1,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
CollectionNames
[]
string
`protobuf:"bytes,1,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"`
Status
*
commonpb
.
Status
`protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ShowCollectionResponse
)
Reset
()
{
*
m
=
ShowCollectionResponse
{}
}
func
(
m
*
ShowCollectionResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ShowCollectionResponse
)
ProtoMessage
()
{}
func
(
*
ShowCollectionResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
0
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
1
}
}
func
(
m
*
ShowCollectionResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -579,6 +677,13 @@ func (m *ShowCollectionResponse) GetCollectionNames() []string {
return
nil
}
func
(
m
*
ShowCollectionResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
type
CreatePartitionRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -593,7 +698,7 @@ func (m *CreatePartitionRequest) Reset() { *m = CreatePartitionRequest{}
func
(
m
*
CreatePartitionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CreatePartitionRequest
)
ProtoMessage
()
{}
func
(
*
CreatePartitionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
1
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
2
}
}
func
(
m
*
CreatePartitionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -656,7 +761,7 @@ func (m *DropPartitionRequest) Reset() { *m = DropPartitionRequest{} }
func
(
m
*
DropPartitionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DropPartitionRequest
)
ProtoMessage
()
{}
func
(
*
DropPartitionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
2
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
3
}
}
func
(
m
*
DropPartitionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -719,7 +824,7 @@ func (m *HasPartitionRequest) Reset() { *m = HasPartitionRequest{} }
func
(
m
*
HasPartitionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
HasPartitionRequest
)
ProtoMessage
()
{}
func
(
*
HasPartitionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
3
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
4
}
}
func
(
m
*
HasPartitionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -782,7 +887,7 @@ func (m *LoadPartitonRequest) Reset() { *m = LoadPartitonRequest{} }
func
(
m
*
LoadPartitonRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LoadPartitonRequest
)
ProtoMessage
()
{}
func
(
*
LoadPartitonRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
4
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
5
}
}
func
(
m
*
LoadPartitonRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -845,7 +950,7 @@ func (m *ReleasePartitionRequest) Reset() { *m = ReleasePartitionRequest
func
(
m
*
ReleasePartitionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReleasePartitionRequest
)
ProtoMessage
()
{}
func
(
*
ReleasePartitionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
5
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
6
}
}
func
(
m
*
ReleasePartitionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -908,7 +1013,7 @@ func (m *PartitionStatsRequest) Reset() { *m = PartitionStatsRequest{} }
func
(
m
*
PartitionStatsRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PartitionStatsRequest
)
ProtoMessage
()
{}
func
(
*
PartitionStatsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
6
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
7
}
}
func
(
m
*
PartitionStatsRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -959,6 +1064,7 @@ func (m *PartitionStatsRequest) GetPartitionName() string {
type
PartitionStatsResponse
struct
{
Stats
[]
*
commonpb
.
KeyValuePair
`protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
Status
*
commonpb
.
Status
`protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -968,7 +1074,7 @@ func (m *PartitionStatsResponse) Reset() { *m = PartitionStatsResponse{}
func
(
m
*
PartitionStatsResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PartitionStatsResponse
)
ProtoMessage
()
{}
func
(
*
PartitionStatsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
7
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
8
}
}
func
(
m
*
PartitionStatsResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -996,6 +1102,13 @@ func (m *PartitionStatsResponse) GetStats() []*commonpb.KeyValuePair {
return
nil
}
func
(
m
*
PartitionStatsResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
type
ShowPartitionRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -1009,7 +1122,7 @@ func (m *ShowPartitionRequest) Reset() { *m = ShowPartitionRequest{} }
func
(
m
*
ShowPartitionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ShowPartitionRequest
)
ProtoMessage
()
{}
func
(
*
ShowPartitionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
8
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
9
}
}
func
(
m
*
ShowPartitionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1052,17 +1165,18 @@ func (m *ShowPartitionRequest) GetCollectionName() string {
}
type
ShowPartitionResponse
struct
{
PartitionNames
[]
string
`protobuf:"bytes,1,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
PartitionNames
[]
string
`protobuf:"bytes,1,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"`
Status
*
commonpb
.
Status
`protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ShowPartitionResponse
)
Reset
()
{
*
m
=
ShowPartitionResponse
{}
}
func
(
m
*
ShowPartitionResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ShowPartitionResponse
)
ProtoMessage
()
{}
func
(
*
ShowPartitionResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
19
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
20
}
}
func
(
m
*
ShowPartitionResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1090,6 +1204,13 @@ func (m *ShowPartitionResponse) GetPartitionNames() []string {
return
nil
}
func
(
m
*
ShowPartitionResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
type
CreateIndexRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -1105,7 +1226,7 @@ func (m *CreateIndexRequest) Reset() { *m = CreateIndexRequest{} }
func
(
m
*
CreateIndexRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CreateIndexRequest
)
ProtoMessage
()
{}
func
(
*
CreateIndexRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
0
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
1
}
}
func
(
m
*
CreateIndexRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1175,7 +1296,7 @@ func (m *DescribeIndexRequest) Reset() { *m = DescribeIndexRequest{} }
func
(
m
*
DescribeIndexRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DescribeIndexRequest
)
ProtoMessage
()
{}
func
(
*
DescribeIndexRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
1
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
2
}
}
func
(
m
*
DescribeIndexRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1236,7 +1357,7 @@ func (m *IndexDescription) Reset() { *m = IndexDescription{} }
func
(
m
*
IndexDescription
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
IndexDescription
)
ProtoMessage
()
{}
func
(
*
IndexDescription
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
2
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
3
}
}
func
(
m
*
IndexDescription
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1273,6 +1394,7 @@ func (m *IndexDescription) GetParams() []*commonpb.KeyValuePair {
type
DescribeIndexResponse
struct
{
IndexDescriptions
[]
*
IndexDescription
`protobuf:"bytes,1,rep,name=index_descriptions,json=indexDescriptions,proto3" json:"index_descriptions,omitempty"`
Status
*
commonpb
.
Status
`protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -1282,7 +1404,7 @@ func (m *DescribeIndexResponse) Reset() { *m = DescribeIndexResponse{} }
func
(
m
*
DescribeIndexResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DescribeIndexResponse
)
ProtoMessage
()
{}
func
(
*
DescribeIndexResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
3
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
4
}
}
func
(
m
*
DescribeIndexResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1310,6 +1432,13 @@ func (m *DescribeIndexResponse) GetIndexDescriptions() []*IndexDescription {
return
nil
}
func
(
m
*
DescribeIndexResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
type
InsertRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -1326,7 +1455,7 @@ func (m *InsertRequest) Reset() { *m = InsertRequest{} }
func
(
m
*
InsertRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InsertRequest
)
ProtoMessage
()
{}
func
(
*
InsertRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
4
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
5
}
}
func
(
m
*
InsertRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1390,18 +1519,19 @@ func (m *InsertRequest) GetHashKeys() []uint32 {
}
type
InsertResponse
struct
{
RowIDBegin
int64
`protobuf:"varint,1,opt,name=rowID_begin,json=rowIDBegin,proto3" json:"rowID_begin,omitempty"`
RowIDEnd
int64
`protobuf:"varint,2,opt,name=rowID_end,json=rowIDEnd,proto3" json:"rowID_end,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
RowIDBegin
int64
`protobuf:"varint,1,opt,name=rowID_begin,json=rowIDBegin,proto3" json:"rowID_begin,omitempty"`
RowIDEnd
int64
`protobuf:"varint,2,opt,name=rowID_end,json=rowIDEnd,proto3" json:"rowID_end,omitempty"`
Status
*
commonpb
.
Status
`protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
InsertResponse
)
Reset
()
{
*
m
=
InsertResponse
{}
}
func
(
m
*
InsertResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InsertResponse
)
ProtoMessage
()
{}
func
(
*
InsertResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
5
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
6
}
}
func
(
m
*
InsertResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1436,23 +1566,126 @@ func (m *InsertResponse) GetRowIDEnd() int64 {
return
0
}
func
(
m
*
InsertResponse
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
type
PlaceholderValue
struct
{
Tag
string
`protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
Type
PlaceholderType
`protobuf:"varint,2,opt,name=type,proto3,enum=milvus.proto.milvus.PlaceholderType" json:"type,omitempty"`
// values is a 2d-array, every array contains a vector
Values
[][]
byte
`protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
PlaceholderValue
)
Reset
()
{
*
m
=
PlaceholderValue
{}
}
func
(
m
*
PlaceholderValue
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PlaceholderValue
)
ProtoMessage
()
{}
func
(
*
PlaceholderValue
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
27
}
}
func
(
m
*
PlaceholderValue
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_PlaceholderValue
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
PlaceholderValue
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_PlaceholderValue
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
PlaceholderValue
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PlaceholderValue
.
Merge
(
m
,
src
)
}
func
(
m
*
PlaceholderValue
)
XXX_Size
()
int
{
return
xxx_messageInfo_PlaceholderValue
.
Size
(
m
)
}
func
(
m
*
PlaceholderValue
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_PlaceholderValue
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_PlaceholderValue
proto
.
InternalMessageInfo
func
(
m
*
PlaceholderValue
)
GetTag
()
string
{
if
m
!=
nil
{
return
m
.
Tag
}
return
""
}
func
(
m
*
PlaceholderValue
)
GetType
()
PlaceholderType
{
if
m
!=
nil
{
return
m
.
Type
}
return
PlaceholderType_NONE
}
func
(
m
*
PlaceholderValue
)
GetValues
()
[][]
byte
{
if
m
!=
nil
{
return
m
.
Values
}
return
nil
}
type
PlaceholderGroup
struct
{
Placeholders
[]
*
PlaceholderValue
`protobuf:"bytes,1,rep,name=placeholders,proto3" json:"placeholders,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
PlaceholderGroup
)
Reset
()
{
*
m
=
PlaceholderGroup
{}
}
func
(
m
*
PlaceholderGroup
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PlaceholderGroup
)
ProtoMessage
()
{}
func
(
*
PlaceholderGroup
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
28
}
}
func
(
m
*
PlaceholderGroup
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_PlaceholderGroup
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
PlaceholderGroup
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_PlaceholderGroup
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
PlaceholderGroup
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PlaceholderGroup
.
Merge
(
m
,
src
)
}
func
(
m
*
PlaceholderGroup
)
XXX_Size
()
int
{
return
xxx_messageInfo_PlaceholderGroup
.
Size
(
m
)
}
func
(
m
*
PlaceholderGroup
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_PlaceholderGroup
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_PlaceholderGroup
proto
.
InternalMessageInfo
func
(
m
*
PlaceholderGroup
)
GetPlaceholders
()
[]
*
PlaceholderValue
{
if
m
!=
nil
{
return
m
.
Placeholders
}
return
nil
}
type
SearchRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
CollectionName
string
`protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
PartitionNames
[]
string
`protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"`
Dsl
string
`protobuf:"bytes,5,opt,name=dsl,proto3" json:"dsl,omitempty"`
PlaceholderGroup
[][]
byte
`protobuf:"bytes,6,rep,name=placeholder_group,json=placeholderGroup,proto3" json:"placeholder_group,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
CollectionName
string
`protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
PartitionNames
[]
string
`protobuf:"bytes,4,rep,name=partition_names,json=partitionNames,proto3" json:"partition_names,omitempty"`
Dsl
string
`protobuf:"bytes,5,opt,name=dsl,proto3" json:"dsl,omitempty"`
// serialized `PlaceholderGroup`
PlaceholderGroup
[]
byte
`protobuf:"bytes,6,opt,name=placeholder_group,json=placeholderGroup,proto3" json:"placeholder_group,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
SearchRequest
)
Reset
()
{
*
m
=
SearchRequest
{}
}
func
(
m
*
SearchRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SearchRequest
)
ProtoMessage
()
{}
func
(
*
SearchRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
6
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
2
9
}
}
func
(
m
*
SearchRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1508,13 +1741,115 @@ func (m *SearchRequest) GetDsl() string {
return
""
}
func
(
m
*
SearchRequest
)
GetPlaceholderGroup
()
[]
[]
byte
{
func
(
m
*
SearchRequest
)
GetPlaceholderGroup
()
[]
byte
{
if
m
!=
nil
{
return
m
.
PlaceholderGroup
}
return
nil
}
type
Hits
struct
{
IDs
[]
int64
`protobuf:"varint,1,rep,packed,name=IDs,proto3" json:"IDs,omitempty"`
RowData
[][]
byte
`protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"`
Scores
[]
float32
`protobuf:"fixed32,3,rep,packed,name=scores,proto3" json:"scores,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
Hits
)
Reset
()
{
*
m
=
Hits
{}
}
func
(
m
*
Hits
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Hits
)
ProtoMessage
()
{}
func
(
*
Hits
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
30
}
}
func
(
m
*
Hits
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Hits
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Hits
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Hits
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
Hits
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Hits
.
Merge
(
m
,
src
)
}
func
(
m
*
Hits
)
XXX_Size
()
int
{
return
xxx_messageInfo_Hits
.
Size
(
m
)
}
func
(
m
*
Hits
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Hits
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Hits
proto
.
InternalMessageInfo
func
(
m
*
Hits
)
GetIDs
()
[]
int64
{
if
m
!=
nil
{
return
m
.
IDs
}
return
nil
}
func
(
m
*
Hits
)
GetRowData
()
[][]
byte
{
if
m
!=
nil
{
return
m
.
RowData
}
return
nil
}
func
(
m
*
Hits
)
GetScores
()
[]
float32
{
if
m
!=
nil
{
return
m
.
Scores
}
return
nil
}
type
QueryResult
struct
{
Status
*
commonpb
.
Status
`protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Hits
[][]
byte
`protobuf:"bytes,2,rep,name=hits,proto3" json:"hits,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
QueryResult
)
Reset
()
{
*
m
=
QueryResult
{}
}
func
(
m
*
QueryResult
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
QueryResult
)
ProtoMessage
()
{}
func
(
*
QueryResult
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
31
}
}
func
(
m
*
QueryResult
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_QueryResult
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
QueryResult
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_QueryResult
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
QueryResult
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_QueryResult
.
Merge
(
m
,
src
)
}
func
(
m
*
QueryResult
)
XXX_Size
()
int
{
return
xxx_messageInfo_QueryResult
.
Size
(
m
)
}
func
(
m
*
QueryResult
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_QueryResult
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_QueryResult
proto
.
InternalMessageInfo
func
(
m
*
QueryResult
)
GetStatus
()
*
commonpb
.
Status
{
if
m
!=
nil
{
return
m
.
Status
}
return
nil
}
func
(
m
*
QueryResult
)
GetHits
()
[][]
byte
{
if
m
!=
nil
{
return
m
.
Hits
}
return
nil
}
type
FlushRequest
struct
{
Base
*
internalpb2
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
...
...
@@ -1528,7 +1863,7 @@ func (m *FlushRequest) Reset() { *m = FlushRequest{} }
func
(
m
*
FlushRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
FlushRequest
)
ProtoMessage
()
{}
func
(
*
FlushRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
27
}
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
32
}
}
func
(
m
*
FlushRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1571,9 +1906,11 @@ func (m *FlushRequest) GetCollectionName() string {
}
func
init
()
{
proto
.
RegisterEnum
(
"milvus.proto.milvus.PlaceholderType"
,
PlaceholderType_name
,
PlaceholderType_value
)
proto
.
RegisterType
((
*
CreateCollectionRequest
)(
nil
),
"milvus.proto.milvus.CreateCollectionRequest"
)
proto
.
RegisterType
((
*
DropCollectionRequest
)(
nil
),
"milvus.proto.milvus.DropCollectionRequest"
)
proto
.
RegisterType
((
*
HasCollectionRequest
)(
nil
),
"milvus.proto.milvus.HasCollectionRequest"
)
proto
.
RegisterType
((
*
BoolResponse
)(
nil
),
"milvus.proto.milvus.BoolResponse"
)
proto
.
RegisterType
((
*
DescribeCollectionRequest
)(
nil
),
"milvus.proto.milvus.DescribeCollectionRequest"
)
proto
.
RegisterType
((
*
DescribeCollectionResponse
)(
nil
),
"milvus.proto.milvus.DescribeCollectionResponse"
)
proto
.
RegisterType
((
*
LoadCollectionRequest
)(
nil
),
"milvus.proto.milvus.LoadCollectionRequest"
)
...
...
@@ -1597,63 +1934,869 @@ func init() {
proto
.
RegisterType
((
*
DescribeIndexResponse
)(
nil
),
"milvus.proto.milvus.DescribeIndexResponse"
)
proto
.
RegisterType
((
*
InsertRequest
)(
nil
),
"milvus.proto.milvus.InsertRequest"
)
proto
.
RegisterType
((
*
InsertResponse
)(
nil
),
"milvus.proto.milvus.InsertResponse"
)
proto
.
RegisterType
((
*
PlaceholderValue
)(
nil
),
"milvus.proto.milvus.PlaceholderValue"
)
proto
.
RegisterType
((
*
PlaceholderGroup
)(
nil
),
"milvus.proto.milvus.PlaceholderGroup"
)
proto
.
RegisterType
((
*
SearchRequest
)(
nil
),
"milvus.proto.milvus.SearchRequest"
)
proto
.
RegisterType
((
*
Hits
)(
nil
),
"milvus.proto.milvus.Hits"
)
proto
.
RegisterType
((
*
QueryResult
)(
nil
),
"milvus.proto.milvus.QueryResult"
)
proto
.
RegisterType
((
*
FlushRequest
)(
nil
),
"milvus.proto.milvus.FlushRequest"
)
}
func
init
()
{
proto
.
RegisterFile
(
"milvus.proto"
,
fileDescriptor_02345ba45cc0e303
)
}
var
fileDescriptor_02345ba45cc0e303
=
[]
byte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0x65
,
0x81
,
0xd3
,
0xea
,
0x33
,
0x62
,
0xaf
,
0x1c
,
0xd4
,
0x1f
,
0x2b
,
0xc2
,
0x94
,
0xd2
,
0xf0
,
0x5b
,
0xad
,
0x9c
,
0x58
,
0xdf
,
0xfc
,
0x37
,
0x00
,
0x00
,
0xff
,
0xff
,
0x10
,
0x02
,
0x02
,
0xfd
,
0x06
,
0x1c
,
0x00
,
0x00
,
}
// Reference imports to suppress errors if they are not otherwise used.
var
_
context
.
Context
var
_
grpc
.
ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const
_
=
grpc
.
SupportPackageIsVersion4
// MilvusServiceClient is the client API for MilvusService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type
MilvusServiceClient
interface
{
CreateCollection
(
ctx
context
.
Context
,
in
*
CreateCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
DropCollection
(
ctx
context
.
Context
,
in
*
DropCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
HasCollection
(
ctx
context
.
Context
,
in
*
HasCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
BoolResponse
,
error
)
LoadCollection
(
ctx
context
.
Context
,
in
*
LoadCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
ReleaseCollection
(
ctx
context
.
Context
,
in
*
ReleaseCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
DescribeCollection
(
ctx
context
.
Context
,
in
*
DescribeCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
DescribeCollectionResponse
,
error
)
GetCollectionStatistics
(
ctx
context
.
Context
,
in
*
CollectionStatsRequest
,
opts
...
grpc
.
CallOption
)
(
*
CollectionStatsResponse
,
error
)
ShowCollections
(
ctx
context
.
Context
,
in
*
ShowCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
ShowCollectionResponse
,
error
)
CreatePartition
(
ctx
context
.
Context
,
in
*
CreatePartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
DropPartition
(
ctx
context
.
Context
,
in
*
DropPartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
HasPartition
(
ctx
context
.
Context
,
in
*
HasPartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
BoolResponse
,
error
)
LoadPartitions
(
ctx
context
.
Context
,
in
*
LoadPartitonRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
ReleasePartitions
(
ctx
context
.
Context
,
in
*
ReleasePartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
GetPartitionStatistics
(
ctx
context
.
Context
,
in
*
PartitionStatsRequest
,
opts
...
grpc
.
CallOption
)
(
*
PartitionStatsResponse
,
error
)
ShowPartitions
(
ctx
context
.
Context
,
in
*
ShowPartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
ShowPartitionResponse
,
error
)
CreateIndex
(
ctx
context
.
Context
,
in
*
CreateIndexRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
DescribeIndex
(
ctx
context
.
Context
,
in
*
DescribeIndexRequest
,
opts
...
grpc
.
CallOption
)
(
*
DescribeIndexResponse
,
error
)
Insert
(
ctx
context
.
Context
,
in
*
InsertRequest
,
opts
...
grpc
.
CallOption
)
(
*
InsertResponse
,
error
)
Search
(
ctx
context
.
Context
,
in
*
SearchRequest
,
opts
...
grpc
.
CallOption
)
(
*
QueryResult
,
error
)
Flush
(
ctx
context
.
Context
,
in
*
FlushRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
}
type
milvusServiceClient
struct
{
cc
*
grpc
.
ClientConn
}
func
NewMilvusServiceClient
(
cc
*
grpc
.
ClientConn
)
MilvusServiceClient
{
return
&
milvusServiceClient
{
cc
}
}
func
(
c
*
milvusServiceClient
)
CreateCollection
(
ctx
context
.
Context
,
in
*
CreateCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/CreateCollection"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
DropCollection
(
ctx
context
.
Context
,
in
*
DropCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/DropCollection"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
HasCollection
(
ctx
context
.
Context
,
in
*
HasCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
BoolResponse
,
error
)
{
out
:=
new
(
BoolResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/HasCollection"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
LoadCollection
(
ctx
context
.
Context
,
in
*
LoadCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/LoadCollection"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
ReleaseCollection
(
ctx
context
.
Context
,
in
*
ReleaseCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/ReleaseCollection"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
DescribeCollection
(
ctx
context
.
Context
,
in
*
DescribeCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
DescribeCollectionResponse
,
error
)
{
out
:=
new
(
DescribeCollectionResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/DescribeCollection"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
GetCollectionStatistics
(
ctx
context
.
Context
,
in
*
CollectionStatsRequest
,
opts
...
grpc
.
CallOption
)
(
*
CollectionStatsResponse
,
error
)
{
out
:=
new
(
CollectionStatsResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/GetCollectionStatistics"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
ShowCollections
(
ctx
context
.
Context
,
in
*
ShowCollectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
ShowCollectionResponse
,
error
)
{
out
:=
new
(
ShowCollectionResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/ShowCollections"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
CreatePartition
(
ctx
context
.
Context
,
in
*
CreatePartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/CreatePartition"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
DropPartition
(
ctx
context
.
Context
,
in
*
DropPartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/DropPartition"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
HasPartition
(
ctx
context
.
Context
,
in
*
HasPartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
BoolResponse
,
error
)
{
out
:=
new
(
BoolResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/HasPartition"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
LoadPartitions
(
ctx
context
.
Context
,
in
*
LoadPartitonRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/LoadPartitions"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
ReleasePartitions
(
ctx
context
.
Context
,
in
*
ReleasePartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/ReleasePartitions"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
GetPartitionStatistics
(
ctx
context
.
Context
,
in
*
PartitionStatsRequest
,
opts
...
grpc
.
CallOption
)
(
*
PartitionStatsResponse
,
error
)
{
out
:=
new
(
PartitionStatsResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/GetPartitionStatistics"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
ShowPartitions
(
ctx
context
.
Context
,
in
*
ShowPartitionRequest
,
opts
...
grpc
.
CallOption
)
(
*
ShowPartitionResponse
,
error
)
{
out
:=
new
(
ShowPartitionResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/ShowPartitions"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
CreateIndex
(
ctx
context
.
Context
,
in
*
CreateIndexRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/CreateIndex"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
DescribeIndex
(
ctx
context
.
Context
,
in
*
DescribeIndexRequest
,
opts
...
grpc
.
CallOption
)
(
*
DescribeIndexResponse
,
error
)
{
out
:=
new
(
DescribeIndexResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/DescribeIndex"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
Insert
(
ctx
context
.
Context
,
in
*
InsertRequest
,
opts
...
grpc
.
CallOption
)
(
*
InsertResponse
,
error
)
{
out
:=
new
(
InsertResponse
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/Insert"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
Search
(
ctx
context
.
Context
,
in
*
SearchRequest
,
opts
...
grpc
.
CallOption
)
(
*
QueryResult
,
error
)
{
out
:=
new
(
QueryResult
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/Search"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
func
(
c
*
milvusServiceClient
)
Flush
(
ctx
context
.
Context
,
in
*
FlushRequest
,
opts
...
grpc
.
CallOption
)
(
*
commonpb
.
Status
,
error
)
{
out
:=
new
(
commonpb
.
Status
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/milvus.proto.milvus.MilvusService/Flush"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
return
nil
,
err
}
return
out
,
nil
}
// MilvusServiceServer is the server API for MilvusService service.
type
MilvusServiceServer
interface
{
CreateCollection
(
context
.
Context
,
*
CreateCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
DropCollection
(
context
.
Context
,
*
DropCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
HasCollection
(
context
.
Context
,
*
HasCollectionRequest
)
(
*
BoolResponse
,
error
)
LoadCollection
(
context
.
Context
,
*
LoadCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
ReleaseCollection
(
context
.
Context
,
*
ReleaseCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
DescribeCollection
(
context
.
Context
,
*
DescribeCollectionRequest
)
(
*
DescribeCollectionResponse
,
error
)
GetCollectionStatistics
(
context
.
Context
,
*
CollectionStatsRequest
)
(
*
CollectionStatsResponse
,
error
)
ShowCollections
(
context
.
Context
,
*
ShowCollectionRequest
)
(
*
ShowCollectionResponse
,
error
)
CreatePartition
(
context
.
Context
,
*
CreatePartitionRequest
)
(
*
commonpb
.
Status
,
error
)
DropPartition
(
context
.
Context
,
*
DropPartitionRequest
)
(
*
commonpb
.
Status
,
error
)
HasPartition
(
context
.
Context
,
*
HasPartitionRequest
)
(
*
BoolResponse
,
error
)
LoadPartitions
(
context
.
Context
,
*
LoadPartitonRequest
)
(
*
commonpb
.
Status
,
error
)
ReleasePartitions
(
context
.
Context
,
*
ReleasePartitionRequest
)
(
*
commonpb
.
Status
,
error
)
GetPartitionStatistics
(
context
.
Context
,
*
PartitionStatsRequest
)
(
*
PartitionStatsResponse
,
error
)
ShowPartitions
(
context
.
Context
,
*
ShowPartitionRequest
)
(
*
ShowPartitionResponse
,
error
)
CreateIndex
(
context
.
Context
,
*
CreateIndexRequest
)
(
*
commonpb
.
Status
,
error
)
DescribeIndex
(
context
.
Context
,
*
DescribeIndexRequest
)
(
*
DescribeIndexResponse
,
error
)
Insert
(
context
.
Context
,
*
InsertRequest
)
(
*
InsertResponse
,
error
)
Search
(
context
.
Context
,
*
SearchRequest
)
(
*
QueryResult
,
error
)
Flush
(
context
.
Context
,
*
FlushRequest
)
(
*
commonpb
.
Status
,
error
)
}
// UnimplementedMilvusServiceServer can be embedded to have forward compatible implementations.
type
UnimplementedMilvusServiceServer
struct
{
}
func
(
*
UnimplementedMilvusServiceServer
)
CreateCollection
(
ctx
context
.
Context
,
req
*
CreateCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method CreateCollection not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
DropCollection
(
ctx
context
.
Context
,
req
*
DropCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method DropCollection not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
HasCollection
(
ctx
context
.
Context
,
req
*
HasCollectionRequest
)
(
*
BoolResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method HasCollection not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
LoadCollection
(
ctx
context
.
Context
,
req
*
LoadCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method LoadCollection not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
ReleaseCollection
(
ctx
context
.
Context
,
req
*
ReleaseCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method ReleaseCollection not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
DescribeCollection
(
ctx
context
.
Context
,
req
*
DescribeCollectionRequest
)
(
*
DescribeCollectionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method DescribeCollection not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
GetCollectionStatistics
(
ctx
context
.
Context
,
req
*
CollectionStatsRequest
)
(
*
CollectionStatsResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method GetCollectionStatistics not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
ShowCollections
(
ctx
context
.
Context
,
req
*
ShowCollectionRequest
)
(
*
ShowCollectionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method ShowCollections not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
CreatePartition
(
ctx
context
.
Context
,
req
*
CreatePartitionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method CreatePartition not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
DropPartition
(
ctx
context
.
Context
,
req
*
DropPartitionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method DropPartition not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
HasPartition
(
ctx
context
.
Context
,
req
*
HasPartitionRequest
)
(
*
BoolResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method HasPartition not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
LoadPartitions
(
ctx
context
.
Context
,
req
*
LoadPartitonRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method LoadPartitions not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
ReleasePartitions
(
ctx
context
.
Context
,
req
*
ReleasePartitionRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method ReleasePartitions not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
GetPartitionStatistics
(
ctx
context
.
Context
,
req
*
PartitionStatsRequest
)
(
*
PartitionStatsResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method GetPartitionStatistics not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
ShowPartitions
(
ctx
context
.
Context
,
req
*
ShowPartitionRequest
)
(
*
ShowPartitionResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method ShowPartitions not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
CreateIndex
(
ctx
context
.
Context
,
req
*
CreateIndexRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method CreateIndex not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
DescribeIndex
(
ctx
context
.
Context
,
req
*
DescribeIndexRequest
)
(
*
DescribeIndexResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method DescribeIndex not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
Insert
(
ctx
context
.
Context
,
req
*
InsertRequest
)
(
*
InsertResponse
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method Insert not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
Search
(
ctx
context
.
Context
,
req
*
SearchRequest
)
(
*
QueryResult
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method Search not implemented"
)
}
func
(
*
UnimplementedMilvusServiceServer
)
Flush
(
ctx
context
.
Context
,
req
*
FlushRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
nil
,
status
.
Errorf
(
codes
.
Unimplemented
,
"method Flush not implemented"
)
}
func
RegisterMilvusServiceServer
(
s
*
grpc
.
Server
,
srv
MilvusServiceServer
)
{
s
.
RegisterService
(
&
_MilvusService_serviceDesc
,
srv
)
}
func
_MilvusService_CreateCollection_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CreateCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
CreateCollection
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/CreateCollection"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
CreateCollection
(
ctx
,
req
.
(
*
CreateCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_DropCollection_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
DropCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
DropCollection
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/DropCollection"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
DropCollection
(
ctx
,
req
.
(
*
DropCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_HasCollection_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
HasCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
HasCollection
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/HasCollection"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
HasCollection
(
ctx
,
req
.
(
*
HasCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_LoadCollection_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
LoadCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
LoadCollection
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/LoadCollection"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
LoadCollection
(
ctx
,
req
.
(
*
LoadCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_ReleaseCollection_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
ReleaseCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
ReleaseCollection
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/ReleaseCollection"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
ReleaseCollection
(
ctx
,
req
.
(
*
ReleaseCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_DescribeCollection_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
DescribeCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
DescribeCollection
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/DescribeCollection"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
DescribeCollection
(
ctx
,
req
.
(
*
DescribeCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_GetCollectionStatistics_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CollectionStatsRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
GetCollectionStatistics
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/GetCollectionStatistics"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
GetCollectionStatistics
(
ctx
,
req
.
(
*
CollectionStatsRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_ShowCollections_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
ShowCollectionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
ShowCollections
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/ShowCollections"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
ShowCollections
(
ctx
,
req
.
(
*
ShowCollectionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_CreatePartition_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CreatePartitionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
CreatePartition
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/CreatePartition"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
CreatePartition
(
ctx
,
req
.
(
*
CreatePartitionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_DropPartition_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
DropPartitionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
DropPartition
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/DropPartition"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
DropPartition
(
ctx
,
req
.
(
*
DropPartitionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_HasPartition_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
HasPartitionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
HasPartition
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/HasPartition"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
HasPartition
(
ctx
,
req
.
(
*
HasPartitionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_LoadPartitions_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
LoadPartitonRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
LoadPartitions
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/LoadPartitions"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
LoadPartitions
(
ctx
,
req
.
(
*
LoadPartitonRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_ReleasePartitions_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
ReleasePartitionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
ReleasePartitions
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/ReleasePartitions"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
ReleasePartitions
(
ctx
,
req
.
(
*
ReleasePartitionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_GetPartitionStatistics_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
PartitionStatsRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
GetPartitionStatistics
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/GetPartitionStatistics"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
GetPartitionStatistics
(
ctx
,
req
.
(
*
PartitionStatsRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_ShowPartitions_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
ShowPartitionRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
ShowPartitions
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/ShowPartitions"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
ShowPartitions
(
ctx
,
req
.
(
*
ShowPartitionRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_CreateIndex_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
CreateIndexRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
CreateIndex
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/CreateIndex"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
CreateIndex
(
ctx
,
req
.
(
*
CreateIndexRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_DescribeIndex_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
DescribeIndexRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
DescribeIndex
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/DescribeIndex"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
DescribeIndex
(
ctx
,
req
.
(
*
DescribeIndexRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_Insert_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
InsertRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
Insert
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/Insert"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
Insert
(
ctx
,
req
.
(
*
InsertRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_Search_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
SearchRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
Search
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/Search"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
Search
(
ctx
,
req
.
(
*
SearchRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
func
_MilvusService_Flush_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
FlushRequest
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
if
interceptor
==
nil
{
return
srv
.
(
MilvusServiceServer
)
.
Flush
(
ctx
,
in
)
}
info
:=
&
grpc
.
UnaryServerInfo
{
Server
:
srv
,
FullMethod
:
"/milvus.proto.milvus.MilvusService/Flush"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
MilvusServiceServer
)
.
Flush
(
ctx
,
req
.
(
*
FlushRequest
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
var
_MilvusService_serviceDesc
=
grpc
.
ServiceDesc
{
ServiceName
:
"milvus.proto.milvus.MilvusService"
,
HandlerType
:
(
*
MilvusServiceServer
)(
nil
),
Methods
:
[]
grpc
.
MethodDesc
{
{
MethodName
:
"CreateCollection"
,
Handler
:
_MilvusService_CreateCollection_Handler
,
},
{
MethodName
:
"DropCollection"
,
Handler
:
_MilvusService_DropCollection_Handler
,
},
{
MethodName
:
"HasCollection"
,
Handler
:
_MilvusService_HasCollection_Handler
,
},
{
MethodName
:
"LoadCollection"
,
Handler
:
_MilvusService_LoadCollection_Handler
,
},
{
MethodName
:
"ReleaseCollection"
,
Handler
:
_MilvusService_ReleaseCollection_Handler
,
},
{
MethodName
:
"DescribeCollection"
,
Handler
:
_MilvusService_DescribeCollection_Handler
,
},
{
MethodName
:
"GetCollectionStatistics"
,
Handler
:
_MilvusService_GetCollectionStatistics_Handler
,
},
{
MethodName
:
"ShowCollections"
,
Handler
:
_MilvusService_ShowCollections_Handler
,
},
{
MethodName
:
"CreatePartition"
,
Handler
:
_MilvusService_CreatePartition_Handler
,
},
{
MethodName
:
"DropPartition"
,
Handler
:
_MilvusService_DropPartition_Handler
,
},
{
MethodName
:
"HasPartition"
,
Handler
:
_MilvusService_HasPartition_Handler
,
},
{
MethodName
:
"LoadPartitions"
,
Handler
:
_MilvusService_LoadPartitions_Handler
,
},
{
MethodName
:
"ReleasePartitions"
,
Handler
:
_MilvusService_ReleasePartitions_Handler
,
},
{
MethodName
:
"GetPartitionStatistics"
,
Handler
:
_MilvusService_GetPartitionStatistics_Handler
,
},
{
MethodName
:
"ShowPartitions"
,
Handler
:
_MilvusService_ShowPartitions_Handler
,
},
{
MethodName
:
"CreateIndex"
,
Handler
:
_MilvusService_CreateIndex_Handler
,
},
{
MethodName
:
"DescribeIndex"
,
Handler
:
_MilvusService_DescribeIndex_Handler
,
},
{
MethodName
:
"Insert"
,
Handler
:
_MilvusService_Insert_Handler
,
},
{
MethodName
:
"Search"
,
Handler
:
_MilvusService_Search_Handler
,
},
{
MethodName
:
"Flush"
,
Handler
:
_MilvusService_Flush_Handler
,
},
},
Streams
:
[]
grpc
.
StreamDesc
{},
Metadata
:
"milvus.proto"
,
}
internal/proxyservice/interface.go
0 → 100644
浏览文件 @
e6225a70
package
proxyservice
import
(
"github.com/zilliztech/milvus-distributed/internal/proto/proxypb"
"github.com/zilliztech/milvus-distributed/internal/util/typeutil"
)
type
ServiceBase
=
typeutil
.
Service
type
Interface
interface
{
ServiceBase
RegisterLink
()
(
proxypb
.
RegisterLinkResponse
,
error
)
RegisterNode
(
request
proxypb
.
RegisterNodeRequest
)
(
proxypb
.
RegisterNodeResponse
,
error
)
// TODO: i'm sure it's not a best way to keep consistency, fix me
InvalidateCollectionMetaCache
(
request
proxypb
.
InvalidateCollMetaCacheRequest
)
error
}
internal/proxyservice/proxyservice.go
0 → 100644
浏览文件 @
e6225a70
package
proxyservice
import
(
"github.com/zilliztech/milvus-distributed/internal/proto/internalpb2"
"github.com/zilliztech/milvus-distributed/internal/proto/proxypb"
)
type
ProxyService
struct
{
// implement Service
//nodeClients [] .Interface
// factory method
}
func
(
s
ProxyService
)
Init
()
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
Start
()
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
Stop
()
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
GetServiceStates
()
(
internalpb2
.
ServiceStates
,
error
)
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
GetTimeTickChannel
()
(
string
,
error
)
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
GetStatisticsChannel
()
(
string
,
error
)
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
RegisterLink
()
(
proxypb
.
RegisterLinkResponse
,
error
)
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
RegisterNode
(
request
proxypb
.
RegisterNodeRequest
)
(
proxypb
.
RegisterNodeResponse
,
error
)
{
panic
(
"implement me"
)
}
func
(
s
ProxyService
)
InvalidateCollectionMetaCache
(
request
proxypb
.
InvalidateCollMetaCacheRequest
)
error
{
panic
(
"implement me"
)
}
func
NewProxyServiceImpl
()
Interface
{
return
&
ProxyService
{}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录