Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
a392f100
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
a392f100
编写于
9月 10, 2021
作者:
N
nameczz
提交者:
GitHub
9月 10, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improve CreateCollectionRequest comment in milvus.proto (#7590)
Signed-off-by:
N
Gitea
<
zizhao.chen@zilliz.com
>
上级
8216478b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
10 deletion
+23
-10
internal/proto/milvus.proto
internal/proto/milvus.proto
+12
-5
internal/proto/milvuspb/milvus.pb.go
internal/proto/milvuspb/milvus.pb.go
+11
-5
未找到文件。
internal/proto/milvus.proto
浏览文件 @
a392f100
...
...
@@ -49,13 +49,20 @@ service MilvusService {
rpc
GetMetrics
(
GetMetricsRequest
)
returns
(
GetMetricsResponse
)
{}
}
/**
* Create collection in milvus
*/
message
CreateCollectionRequest
{
common.MsgBase
base
=
1
;
// must
// Not useful for now
common.MsgBase
base
=
1
;
// Not useful for now
string
db_name
=
2
;
string
collection_name
=
3
;
// must
// `schema` is the serialized `schema.CollectionSchema`
bytes
schema
=
4
;
// must
int32
shards_num
=
5
;
// must. Once set, no modification is allowed
// The unique collection name in milvus.(Required)
string
collection_name
=
3
;
// The serialized `schema.CollectionSchema`(Required)
bytes
schema
=
4
;
// Once set, no modification is allowed (Optional)
int32
shards_num
=
5
;
}
message
DropCollectionRequest
{
...
...
internal/proto/milvuspb/milvus.pb.go
浏览文件 @
a392f100
...
...
@@ -79,12 +79,18 @@ func (PlaceholderType) EnumDescriptor() ([]byte, []int) {
return
fileDescriptor_02345ba45cc0e303
,
[]
int
{
1
}
}
//*
// Create collection in milvus
type
CreateCollectionRequest
struct
{
Base
*
commonpb
.
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"`
// `schema` is the serialized `schema.CollectionSchema`
Schema
[]
byte
`protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
// Not useful for now
Base
*
commonpb
.
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// Not useful for now
DbName
string
`protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
// The unique collection name in milvus.(Required)
CollectionName
string
`protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
// The serialized `schema.CollectionSchema`(Required)
Schema
[]
byte
`protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
// Once set, no modification is allowed (Optional)
ShardsNum
int32
`protobuf:"varint,5,opt,name=shards_num,json=shardsNum,proto3" json:"shards_num,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录