Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
d18c3bc5
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,发现更多精彩内容 >>
未验证
提交
d18c3bc5
编写于
10月 01, 2021
作者:
C
Cai Yudong
提交者:
GitHub
10月 01, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add db_name for alias proto (#9010)
Signed-off-by:
N
yudong.cai
<
yudong.cai@zilliz.com
>
上级
6f08430c
变更
7
展开全部
显示空白变更内容
内联
并排
Showing
7 changed file
with
1220 addition
and
780 deletion
+1220
-780
internal/core/src/pb/milvus.pb.cc
internal/core/src/pb/milvus.pb.cc
+613
-419
internal/core/src/pb/milvus.pb.h
internal/core/src/pb/milvus.pb.h
+207
-15
internal/proto/internal.proto
internal/proto/internal.proto
+8
-5
internal/proto/internalpb/internal.pb.go
internal/proto/internalpb/internal.pb.go
+157
-133
internal/proto/milvus.proto
internal/proto/milvus.proto
+8
-5
internal/proto/milvuspb/milvus.pb.go
internal/proto/milvuspb/milvus.pb.go
+226
-202
tests/python_client/requirements.txt
tests/python_client/requirements.txt
+1
-1
未找到文件。
internal/core/src/pb/milvus.pb.cc
浏览文件 @
d18c3bc5
此差异已折叠。
点击以展开。
internal/core/src/pb/milvus.pb.h
浏览文件 @
d18c3bc5
...
...
@@ -506,11 +506,23 @@ class CreateAliasRequest :
// accessors -------------------------------------------------------
enum : int {
kCollectionNameFieldNumber = 2,
kAliasFieldNumber = 3,
kDbNameFieldNumber = 2,
kCollectionNameFieldNumber = 3,
kAliasFieldNumber = 4,
kBaseFieldNumber = 1,
};
// string collection_name = 2;
// string db_name = 2;
void clear_db_name();
const std::string& db_name() const;
void set_db_name(const std::string& value);
void set_db_name(std::string&& value);
void set_db_name(const char* value);
void set_db_name(const char* value, size_t size);
std::string* mutable_db_name();
std::string* release_db_name();
void set_allocated_db_name(std::string* db_name);
// string collection_name = 3;
void clear_collection_name();
const std::string& collection_name() const;
void set_collection_name(const std::string& value);
...
...
@@ -521,7 +533,7 @@ class CreateAliasRequest :
std::string* release_collection_name();
void set_allocated_collection_name(std::string* collection_name);
// string alias =
3
;
// string alias =
4
;
void clear_alias();
const std::string& alias() const;
void set_alias(const std::string& value);
...
...
@@ -545,6 +557,7 @@ class CreateAliasRequest :
class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr alias_;
::milvus::proto::common::MsgBase* base_;
...
...
@@ -666,10 +679,22 @@ class DropAliasRequest :
// accessors -------------------------------------------------------
enum : int {
kAliasFieldNumber = 2,
kDbNameFieldNumber = 2,
kAliasFieldNumber = 3,
kBaseFieldNumber = 1,
};
// string alias = 2;
// string db_name = 2;
void clear_db_name();
const std::string& db_name() const;
void set_db_name(const std::string& value);
void set_db_name(std::string&& value);
void set_db_name(const char* value);
void set_db_name(const char* value, size_t size);
std::string* mutable_db_name();
std::string* release_db_name();
void set_allocated_db_name(std::string* db_name);
// string alias = 3;
void clear_alias();
const std::string& alias() const;
void set_alias(const std::string& value);
...
...
@@ -693,6 +718,7 @@ class DropAliasRequest :
class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr alias_;
::milvus::proto::common::MsgBase* base_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
...
...
@@ -813,11 +839,23 @@ class AlterAliasRequest :
// accessors -------------------------------------------------------
enum : int {
kCollectionNameFieldNumber = 2,
kAliasFieldNumber = 3,
kDbNameFieldNumber = 2,
kCollectionNameFieldNumber = 3,
kAliasFieldNumber = 4,
kBaseFieldNumber = 1,
};
// string collection_name = 2;
// string db_name = 2;
void clear_db_name();
const std::string& db_name() const;
void set_db_name(const std::string& value);
void set_db_name(std::string&& value);
void set_db_name(const char* value);
void set_db_name(const char* value, size_t size);
std::string* mutable_db_name();
std::string* release_db_name();
void set_allocated_db_name(std::string* db_name);
// string collection_name = 3;
void clear_collection_name();
const std::string& collection_name() const;
void set_collection_name(const std::string& value);
...
...
@@ -828,7 +866,7 @@ class AlterAliasRequest :
std::string* release_collection_name();
void set_allocated_collection_name(std::string* collection_name);
// string alias =
3
;
// string alias =
4
;
void clear_alias();
const std::string& alias() const;
void set_alias(const std::string& value);
...
...
@@ -852,6 +890,7 @@ class AlterAliasRequest :
class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr db_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr alias_;
::milvus::proto::common::MsgBase* base_;
...
...
@@ -11573,7 +11612,58 @@ inline void CreateAliasRequest::set_allocated_base(::milvus::proto::common::MsgB
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateAliasRequest.base)
}
// string collection_name = 2;
// string db_name = 2;
inline void CreateAliasRequest::clear_db_name() {
db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& CreateAliasRequest::db_name() const {
// @@protoc_insertion_point(field_get:milvus.proto.milvus.CreateAliasRequest.db_name)
return db_name_.GetNoArena();
}
inline void CreateAliasRequest::set_db_name(const std::string& value) {
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:milvus.proto.milvus.CreateAliasRequest.db_name)
}
inline void CreateAliasRequest::set_db_name(std::string&& value) {
db_name_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.CreateAliasRequest.db_name)
}
inline void CreateAliasRequest::set_db_name(const char* value) {
GOOGLE_DCHECK(value != nullptr);
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:milvus.proto.milvus.CreateAliasRequest.db_name)
}
inline void CreateAliasRequest::set_db_name(const char* value, size_t size) {
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.CreateAliasRequest.db_name)
}
inline std::string* CreateAliasRequest::mutable_db_name() {
// @@protoc_insertion_point(field_mutable:milvus.proto.milvus.CreateAliasRequest.db_name)
return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* CreateAliasRequest::release_db_name() {
// @@protoc_insertion_point(field_release:milvus.proto.milvus.CreateAliasRequest.db_name)
return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void CreateAliasRequest::set_allocated_db_name(std::string* db_name) {
if (db_name != nullptr) {
} else {
}
db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name);
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateAliasRequest.db_name)
}
// string collection_name = 3;
inline void CreateAliasRequest::clear_collection_name() {
collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
...
...
@@ -11624,7 +11714,7 @@ inline void CreateAliasRequest::set_allocated_collection_name(std::string* colle
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.CreateAliasRequest.collection_name)
}
// string alias =
3
;
// string alias =
4
;
inline void CreateAliasRequest::clear_alias() {
alias_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
...
...
@@ -11724,7 +11814,58 @@ inline void DropAliasRequest::set_allocated_base(::milvus::proto::common::MsgBas
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropAliasRequest.base)
}
// string alias = 2;
// string db_name = 2;
inline void DropAliasRequest::clear_db_name() {
db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& DropAliasRequest::db_name() const {
// @@protoc_insertion_point(field_get:milvus.proto.milvus.DropAliasRequest.db_name)
return db_name_.GetNoArena();
}
inline void DropAliasRequest::set_db_name(const std::string& value) {
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:milvus.proto.milvus.DropAliasRequest.db_name)
}
inline void DropAliasRequest::set_db_name(std::string&& value) {
db_name_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.DropAliasRequest.db_name)
}
inline void DropAliasRequest::set_db_name(const char* value) {
GOOGLE_DCHECK(value != nullptr);
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:milvus.proto.milvus.DropAliasRequest.db_name)
}
inline void DropAliasRequest::set_db_name(const char* value, size_t size) {
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.DropAliasRequest.db_name)
}
inline std::string* DropAliasRequest::mutable_db_name() {
// @@protoc_insertion_point(field_mutable:milvus.proto.milvus.DropAliasRequest.db_name)
return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* DropAliasRequest::release_db_name() {
// @@protoc_insertion_point(field_release:milvus.proto.milvus.DropAliasRequest.db_name)
return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void DropAliasRequest::set_allocated_db_name(std::string* db_name) {
if (db_name != nullptr) {
} else {
}
db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name);
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.DropAliasRequest.db_name)
}
// string alias = 3;
inline void DropAliasRequest::clear_alias() {
alias_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
...
...
@@ -11824,7 +11965,58 @@ inline void AlterAliasRequest::set_allocated_base(::milvus::proto::common::MsgBa
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.AlterAliasRequest.base)
}
// string collection_name = 2;
// string db_name = 2;
inline void AlterAliasRequest::clear_db_name() {
db_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& AlterAliasRequest::db_name() const {
// @@protoc_insertion_point(field_get:milvus.proto.milvus.AlterAliasRequest.db_name)
return db_name_.GetNoArena();
}
inline void AlterAliasRequest::set_db_name(const std::string& value) {
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:milvus.proto.milvus.AlterAliasRequest.db_name)
}
inline void AlterAliasRequest::set_db_name(std::string&& value) {
db_name_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:milvus.proto.milvus.AlterAliasRequest.db_name)
}
inline void AlterAliasRequest::set_db_name(const char* value) {
GOOGLE_DCHECK(value != nullptr);
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:milvus.proto.milvus.AlterAliasRequest.db_name)
}
inline void AlterAliasRequest::set_db_name(const char* value, size_t size) {
db_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:milvus.proto.milvus.AlterAliasRequest.db_name)
}
inline std::string* AlterAliasRequest::mutable_db_name() {
// @@protoc_insertion_point(field_mutable:milvus.proto.milvus.AlterAliasRequest.db_name)
return db_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* AlterAliasRequest::release_db_name() {
// @@protoc_insertion_point(field_release:milvus.proto.milvus.AlterAliasRequest.db_name)
return db_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void AlterAliasRequest::set_allocated_db_name(std::string* db_name) {
if (db_name != nullptr) {
} else {
}
db_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), db_name);
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.AlterAliasRequest.db_name)
}
// string collection_name = 3;
inline void AlterAliasRequest::clear_collection_name() {
collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
...
...
@@ -11875,7 +12067,7 @@ inline void AlterAliasRequest::set_allocated_collection_name(std::string* collec
// @@protoc_insertion_point(field_set_allocated:milvus.proto.milvus.AlterAliasRequest.collection_name)
}
// string alias =
3
;
// string alias =
4
;
inline void AlterAliasRequest::clear_alias() {
alias_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
...
...
internal/proto/internal.proto
浏览文件 @
d18c3bc5
...
...
@@ -99,19 +99,22 @@ message DropPartitionRequest {
message
CreateAliasRequest
{
common.MsgBase
base
=
1
;
string
collection_name
=
2
;
string
alias
=
3
;
string
db_name
=
2
;
string
collection_name
=
3
;
string
alias
=
4
;
}
message
DropAliasRequest
{
common.MsgBase
base
=
1
;
string
alias
=
2
;
string
db_name
=
2
;
string
alias
=
3
;
}
message
AlterAliasRequest
{
common.MsgBase
base
=
1
;
string
collection_name
=
2
;
string
alias
=
3
;
string
db_name
=
2
;
string
collection_name
=
3
;
string
alias
=
4
;
}
message
CreateIndexRequest
{
...
...
internal/proto/internalpb/internal.pb.go
浏览文件 @
d18c3bc5
此差异已折叠。
点击以展开。
internal/proto/milvus.proto
浏览文件 @
d18c3bc5
...
...
@@ -55,19 +55,22 @@ service MilvusService {
message
CreateAliasRequest
{
common.MsgBase
base
=
1
;
string
collection_name
=
2
;
string
alias
=
3
;
string
db_name
=
2
;
string
collection_name
=
3
;
string
alias
=
4
;
}
message
DropAliasRequest
{
common.MsgBase
base
=
1
;
string
alias
=
2
;
string
db_name
=
2
;
string
alias
=
3
;
}
message
AlterAliasRequest
{
common.MsgBase
base
=
1
;
string
collection_name
=
2
;
string
alias
=
3
;
string
db_name
=
2
;
string
collection_name
=
3
;
string
alias
=
4
;
}
/**
...
...
internal/proto/milvuspb/milvus.pb.go
浏览文件 @
d18c3bc5
此差异已折叠。
点击以展开。
tests/python_client/requirements.txt
浏览文件 @
d18c3bc5
...
...
@@ -13,7 +13,7 @@ pytest-print==0.2.1
pytest-level==0.1.1
pytest-xdist==2.2.1
# pytest-parallel
pymilvus==2.0.0rc7.dev
11
pymilvus==2.0.0rc7.dev
22
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录