Change Id to ID in go files according to golint check

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/4973/head^2
cai.zhang 2020-11-13 15:17:18 +08:00 committed by yefu.chen
parent e541041b28
commit 0b478b614a
55 changed files with 1217 additions and 1220 deletions

View File

@ -6,7 +6,6 @@ run:
- docs - docs
- scripts - scripts
- internal/core - internal/core
- internal/proto
linters-settings: linters-settings:
golint: golint:
@ -34,7 +33,6 @@ issues:
- should be of the form - should be of the form
- should not use dot imports - should not use dot imports
- which can be annoying to use - which can be annoying to use
- AllocId
service: service:
golangci-lint-version: 1.27.0 # use the fixed version to not introduce new linters unexpectedly golangci-lint-version: 1.27.0 # use the fixed version to not introduce new linters unexpectedly

View File

@ -36,19 +36,19 @@ func NewIDAllocator(ctx context.Context) (*IDAllocator, error) {
func (ta *IDAllocator) syncID() { func (ta *IDAllocator) syncID() {
fmt.Println("syncID") fmt.Println("syncID")
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
req := &internalpb.IdRequest{ req := &internalpb.IDRequest{
PeerId: 1, PeerID: 1,
Role: internalpb.PeerRole_Proxy, Role: internalpb.PeerRole_Proxy,
Count: ta.countPerRPC, Count: ta.countPerRPC,
} }
resp, err := ta.masterClient.AllocId(ctx, req) resp, err := ta.masterClient.AllocID(ctx, req)
cancel() cancel()
if err != nil { if err != nil {
log.Panic("syncID Failed!!!!!") log.Panic("syncID Failed!!!!!")
return return
} }
ta.idStart = resp.GetId() ta.idStart = resp.GetID()
ta.idEnd = ta.idStart + int64(resp.GetCount()) ta.idEnd = ta.idStart + int64(resp.GetCount())
} }

View File

@ -44,7 +44,7 @@ func (ta *TimestampAllocator) syncTs() {
fmt.Println("sync TS") fmt.Println("sync TS")
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
req := &internalpb.TsoRequest{ req := &internalpb.TsoRequest{
PeerId: 1, PeerID: 1,
Role: internalpb.PeerRole_Proxy, Role: internalpb.PeerRole_Proxy,
Count: ta.countPerRPC, Count: ta.countPerRPC,
} }

View File

@ -109,8 +109,8 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[]
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, id_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, num_query_nodes_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, num_query_nodes_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, insert_channel_ids_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, insert_channelids_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, query_channel_id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, query_channelid_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@ -118,7 +118,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[]
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, id_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, address_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, address_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, result_channel_ids_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, result_channelids_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@ -127,15 +127,15 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[]
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, id_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, schema_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, schema_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, create_time_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, create_time_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, segment_ids_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, segmentids_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, partition_tags_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, partition_tags_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, segment_id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, segmentid_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, collection_id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, collectionid_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, partition_tag_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, partition_tag_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, channel_start_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, channel_start_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, channel_end_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, channel_end_),
@ -159,22 +159,22 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] =
const char descriptor_table_protodef_etcd_5fmeta_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = const char descriptor_table_protodef_etcd_5fmeta_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\017etcd_meta.proto\022\021milvus.proto.etcd\032\014co" "\n\017etcd_meta.proto\022\021milvus.proto.etcd\032\014co"
"mmon.proto\032\014schema.proto\"g\n\nTenantMeta\022\n" "mmon.proto\032\014schema.proto\"e\n\nTenantMeta\022\n"
"\n\002id\030\001 \001(\003\022\027\n\017num_query_nodes\030\002 \001(\003\022\032\n\022i" "\n\002ID\030\001 \001(\003\022\027\n\017num_query_nodes\030\002 \001(\003\022\031\n\021i"
"nsert_channel_ids\030\003 \003(\t\022\030\n\020query_channel" "nsert_channelIDs\030\003 \003(\t\022\027\n\017query_channelI"
"_id\030\004 \001(\t\"b\n\tProxyMeta\022\n\n\002id\030\001 \001(\003\022-\n\007ad" "D\030\004 \001(\t\"a\n\tProxyMeta\022\n\n\002ID\030\001 \001(\003\022-\n\007addr"
"dress\030\002 \001(\0132\034.milvus.proto.common.Addres" "ess\030\002 \001(\0132\034.milvus.proto.common.Address\022"
"s\022\032\n\022result_channel_ids\030\003 \003(\t\"\225\001\n\016Collec" "\031\n\021result_channelIDs\030\003 \003(\t\"\224\001\n\016Collectio"
"tionMeta\022\n\n\002id\030\001 \001(\003\0225\n\006schema\030\002 \001(\0132%.m" "nMeta\022\n\n\002ID\030\001 \001(\003\0225\n\006schema\030\002 \001(\0132%.milv"
"ilvus.proto.schema.CollectionSchema\022\023\n\013c" "us.proto.schema.CollectionSchema\022\023\n\013crea"
"reate_time\030\003 \001(\004\022\023\n\013segment_ids\030\004 \003(\003\022\026\n" "te_time\030\003 \001(\004\022\022\n\nsegmentIDs\030\004 \003(\003\022\026\n\016par"
"\016partition_tags\030\005 \003(\t\"\264\001\n\013SegmentMeta\022\022\n" "tition_tags\030\005 \003(\t\"\262\001\n\013SegmentMeta\022\021\n\tseg"
"\nsegment_id\030\001 \001(\003\022\025\n\rcollection_id\030\002 \001(\003" "mentID\030\001 \001(\003\022\024\n\014collectionID\030\002 \001(\003\022\025\n\rpa"
"\022\025\n\rpartition_tag\030\003 \001(\t\022\025\n\rchannel_start" "rtition_tag\030\003 \001(\t\022\025\n\rchannel_start\030\004 \001(\005"
"\030\004 \001(\005\022\023\n\013channel_end\030\005 \001(\005\022\021\n\topen_time" "\022\023\n\013channel_end\030\005 \001(\005\022\021\n\topen_time\030\006 \001(\004"
"\030\006 \001(\004\022\022\n\nclose_time\030\007 \001(\004\022\020\n\010num_rows\030\010" "\022\022\n\nclose_time\030\007 \001(\004\022\020\n\010num_rows\030\010 \001(\003B@"
" \001(\003B@Z>github.com/zilliztech/milvus-dis" "Z>github.com/zilliztech/milvus-distribut"
"tributed/internal/proto/etcdpbb\006proto3" "ed/internal/proto/etcdpbb\006proto3"
; ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_etcd_5fmeta_2eproto_deps[2] = { static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_etcd_5fmeta_2eproto_deps[2] = {
&::descriptor_table_common_2eproto, &::descriptor_table_common_2eproto,
@ -189,7 +189,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_etc
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_etcd_5fmeta_2eproto_once; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_etcd_5fmeta_2eproto_once;
static bool descriptor_table_etcd_5fmeta_2eproto_initialized = false; static bool descriptor_table_etcd_5fmeta_2eproto_initialized = false;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_etcd_5fmeta_2eproto = { const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_etcd_5fmeta_2eproto = {
&descriptor_table_etcd_5fmeta_2eproto_initialized, descriptor_table_protodef_etcd_5fmeta_2eproto, "etcd_meta.proto", 678, &descriptor_table_etcd_5fmeta_2eproto_initialized, descriptor_table_protodef_etcd_5fmeta_2eproto, "etcd_meta.proto", 672,
&descriptor_table_etcd_5fmeta_2eproto_once, descriptor_table_etcd_5fmeta_2eproto_sccs, descriptor_table_etcd_5fmeta_2eproto_deps, 4, 2, &descriptor_table_etcd_5fmeta_2eproto_once, descriptor_table_etcd_5fmeta_2eproto_sccs, descriptor_table_etcd_5fmeta_2eproto_deps, 4, 2,
schemas, file_default_instances, TableStruct_etcd_5fmeta_2eproto::offsets, schemas, file_default_instances, TableStruct_etcd_5fmeta_2eproto::offsets,
file_level_metadata_etcd_5fmeta_2eproto, 4, file_level_enum_descriptors_etcd_5fmeta_2eproto, file_level_service_descriptors_etcd_5fmeta_2eproto, file_level_metadata_etcd_5fmeta_2eproto, 4, file_level_enum_descriptors_etcd_5fmeta_2eproto, file_level_service_descriptors_etcd_5fmeta_2eproto,
@ -217,11 +217,11 @@ TenantMeta::TenantMeta()
TenantMeta::TenantMeta(const TenantMeta& from) TenantMeta::TenantMeta(const TenantMeta& from)
: ::PROTOBUF_NAMESPACE_ID::Message(), : ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr), _internal_metadata_(nullptr),
insert_channel_ids_(from.insert_channel_ids_) { insert_channelids_(from.insert_channelids_) {
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
query_channel_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); query_channelid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (!from.query_channel_id().empty()) { if (!from.query_channelid().empty()) {
query_channel_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_channel_id_); query_channelid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_channelid_);
} }
::memcpy(&id_, &from.id_, ::memcpy(&id_, &from.id_,
static_cast<size_t>(reinterpret_cast<char*>(&num_query_nodes_) - static_cast<size_t>(reinterpret_cast<char*>(&num_query_nodes_) -
@ -231,7 +231,7 @@ TenantMeta::TenantMeta(const TenantMeta& from)
void TenantMeta::SharedCtor() { void TenantMeta::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TenantMeta_etcd_5fmeta_2eproto.base); ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TenantMeta_etcd_5fmeta_2eproto.base);
query_channel_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); query_channelid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&id_, 0, static_cast<size_t>( ::memset(&id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&num_query_nodes_) - reinterpret_cast<char*>(&num_query_nodes_) -
reinterpret_cast<char*>(&id_)) + sizeof(num_query_nodes_)); reinterpret_cast<char*>(&id_)) + sizeof(num_query_nodes_));
@ -243,7 +243,7 @@ TenantMeta::~TenantMeta() {
} }
void TenantMeta::SharedDtor() { void TenantMeta::SharedDtor() {
query_channel_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); query_channelid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
} }
void TenantMeta::SetCachedSize(int size) const { void TenantMeta::SetCachedSize(int size) const {
@ -261,8 +261,8 @@ void TenantMeta::Clear() {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
insert_channel_ids_.Clear(); insert_channelids_.Clear();
query_channel_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); query_channelid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&id_, 0, static_cast<size_t>( ::memset(&id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&num_query_nodes_) - reinterpret_cast<char*>(&num_query_nodes_) -
reinterpret_cast<char*>(&id_)) + sizeof(num_query_nodes_)); reinterpret_cast<char*>(&id_)) + sizeof(num_query_nodes_));
@ -277,7 +277,7 @@ const char* TenantMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr); CHK_(ptr);
switch (tag >> 3) { switch (tag >> 3) {
// int64 id = 1; // int64 ID = 1;
case 1: case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
@ -291,22 +291,22 @@ const char* TenantMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
case 3: case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr -= 1; ptr -= 1;
do { do {
ptr += 1; ptr += 1;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_insert_channel_ids(), ptr, ctx, "milvus.proto.etcd.TenantMeta.insert_channel_ids"); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_insert_channelids(), ptr, ctx, "milvus.proto.etcd.TenantMeta.insert_channelIDs");
CHK_(ptr); CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break; if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
// string query_channel_id = 4; // string query_channelID = 4;
case 4: case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_query_channel_id(), ptr, ctx, "milvus.proto.etcd.TenantMeta.query_channel_id"); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_query_channelid(), ptr, ctx, "milvus.proto.etcd.TenantMeta.query_channelID");
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
@ -340,7 +340,7 @@ bool TenantMeta::MergePartialFromCodedStream(
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 id = 1; // int64 ID = 1;
case 1: { case 1: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
@ -366,31 +366,31 @@ bool TenantMeta::MergePartialFromCodedStream(
break; break;
} }
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
case 3: { case 3: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
input, this->add_insert_channel_ids())); input, this->add_insert_channelids()));
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->insert_channel_ids(this->insert_channel_ids_size() - 1).data(), this->insert_channelids(this->insert_channelids_size() - 1).data(),
static_cast<int>(this->insert_channel_ids(this->insert_channel_ids_size() - 1).length()), static_cast<int>(this->insert_channelids(this->insert_channelids_size() - 1).length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
"milvus.proto.etcd.TenantMeta.insert_channel_ids")); "milvus.proto.etcd.TenantMeta.insert_channelIDs"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
break; break;
} }
// string query_channel_id = 4; // string query_channelID = 4;
case 4: { case 4: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
input, this->mutable_query_channel_id())); input, this->mutable_query_channelid()));
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->query_channel_id().data(), static_cast<int>(this->query_channel_id().length()), this->query_channelid().data(), static_cast<int>(this->query_channelid().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
"milvus.proto.etcd.TenantMeta.query_channel_id")); "milvus.proto.etcd.TenantMeta.query_channelID"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -424,7 +424,7 @@ void TenantMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
} }
@ -434,24 +434,24 @@ void TenantMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->num_query_nodes(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->num_query_nodes(), output);
} }
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
for (int i = 0, n = this->insert_channel_ids_size(); i < n; i++) { for (int i = 0, n = this->insert_channelids_size(); i < n; i++) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->insert_channel_ids(i).data(), static_cast<int>(this->insert_channel_ids(i).length()), this->insert_channelids(i).data(), static_cast<int>(this->insert_channelids(i).length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"milvus.proto.etcd.TenantMeta.insert_channel_ids"); "milvus.proto.etcd.TenantMeta.insert_channelIDs");
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3, this->insert_channel_ids(i), output); 3, this->insert_channelids(i), output);
} }
// string query_channel_id = 4; // string query_channelID = 4;
if (this->query_channel_id().size() > 0) { if (this->query_channelid().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->query_channel_id().data(), static_cast<int>(this->query_channel_id().length()), this->query_channelid().data(), static_cast<int>(this->query_channelid().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"milvus.proto.etcd.TenantMeta.query_channel_id"); "milvus.proto.etcd.TenantMeta.query_channelID");
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->query_channel_id(), output); 4, this->query_channelid(), output);
} }
if (_internal_metadata_.have_unknown_fields()) { if (_internal_metadata_.have_unknown_fields()) {
@ -467,7 +467,7 @@ void TenantMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
} }
@ -477,25 +477,25 @@ void TenantMeta::SerializeWithCachedSizes(
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->num_query_nodes(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->num_query_nodes(), target);
} }
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
for (int i = 0, n = this->insert_channel_ids_size(); i < n; i++) { for (int i = 0, n = this->insert_channelids_size(); i < n; i++) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->insert_channel_ids(i).data(), static_cast<int>(this->insert_channel_ids(i).length()), this->insert_channelids(i).data(), static_cast<int>(this->insert_channelids(i).length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"milvus.proto.etcd.TenantMeta.insert_channel_ids"); "milvus.proto.etcd.TenantMeta.insert_channelIDs");
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
WriteStringToArray(3, this->insert_channel_ids(i), target); WriteStringToArray(3, this->insert_channelids(i), target);
} }
// string query_channel_id = 4; // string query_channelID = 4;
if (this->query_channel_id().size() > 0) { if (this->query_channelid().size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->query_channel_id().data(), static_cast<int>(this->query_channel_id().length()), this->query_channelid().data(), static_cast<int>(this->query_channelid().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"milvus.proto.etcd.TenantMeta.query_channel_id"); "milvus.proto.etcd.TenantMeta.query_channelID");
target = target =
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
4, this->query_channel_id(), target); 4, this->query_channelid(), target);
} }
if (_internal_metadata_.have_unknown_fields()) { if (_internal_metadata_.have_unknown_fields()) {
@ -519,22 +519,22 @@ size_t TenantMeta::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
total_size += 1 * total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->insert_channel_ids_size()); ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->insert_channelids_size());
for (int i = 0, n = this->insert_channel_ids_size(); i < n; i++) { for (int i = 0, n = this->insert_channelids_size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->insert_channel_ids(i)); this->insert_channelids(i));
} }
// string query_channel_id = 4; // string query_channelID = 4;
if (this->query_channel_id().size() > 0) { if (this->query_channelid().size() > 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->query_channel_id()); this->query_channelid());
} }
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
@ -575,10 +575,10 @@ void TenantMeta::MergeFrom(const TenantMeta& from) {
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
insert_channel_ids_.MergeFrom(from.insert_channel_ids_); insert_channelids_.MergeFrom(from.insert_channelids_);
if (from.query_channel_id().size() > 0) { if (from.query_channelid().size() > 0) {
query_channel_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_channel_id_); query_channelid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_channelid_);
} }
if (from.id() != 0) { if (from.id() != 0) {
set_id(from.id()); set_id(from.id());
@ -609,8 +609,8 @@ bool TenantMeta::IsInitialized() const {
void TenantMeta::InternalSwap(TenantMeta* other) { void TenantMeta::InternalSwap(TenantMeta* other) {
using std::swap; using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_); _internal_metadata_.Swap(&other->_internal_metadata_);
insert_channel_ids_.InternalSwap(CastToBase(&other->insert_channel_ids_)); insert_channelids_.InternalSwap(CastToBase(&other->insert_channelids_));
query_channel_id_.Swap(&other->query_channel_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query_channelid_.Swap(&other->query_channelid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual()); GetArenaNoVirtual());
swap(id_, other->id_); swap(id_, other->id_);
swap(num_query_nodes_, other->num_query_nodes_); swap(num_query_nodes_, other->num_query_nodes_);
@ -650,7 +650,7 @@ ProxyMeta::ProxyMeta()
ProxyMeta::ProxyMeta(const ProxyMeta& from) ProxyMeta::ProxyMeta(const ProxyMeta& from)
: ::PROTOBUF_NAMESPACE_ID::Message(), : ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr), _internal_metadata_(nullptr),
result_channel_ids_(from.result_channel_ids_) { result_channelids_(from.result_channelids_) {
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_address()) { if (from.has_address()) {
address_ = new ::milvus::proto::common::Address(*from.address_); address_ = new ::milvus::proto::common::Address(*from.address_);
@ -692,7 +692,7 @@ void ProxyMeta::Clear() {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
result_channel_ids_.Clear(); result_channelids_.Clear();
if (GetArenaNoVirtual() == nullptr && address_ != nullptr) { if (GetArenaNoVirtual() == nullptr && address_ != nullptr) {
delete address_; delete address_;
} }
@ -709,7 +709,7 @@ const char* ProxyMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr); CHK_(ptr);
switch (tag >> 3) { switch (tag >> 3) {
// int64 id = 1; // int64 ID = 1;
case 1: case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
@ -723,13 +723,13 @@ const char* ProxyMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
case 3: case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
ptr -= 1; ptr -= 1;
do { do {
ptr += 1; ptr += 1;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_result_channel_ids(), ptr, ctx, "milvus.proto.etcd.ProxyMeta.result_channel_ids"); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_result_channelids(), ptr, ctx, "milvus.proto.etcd.ProxyMeta.result_channelIDs");
CHK_(ptr); CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break; if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
@ -765,7 +765,7 @@ bool ProxyMeta::MergePartialFromCodedStream(
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 id = 1; // int64 ID = 1;
case 1: { case 1: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
@ -789,16 +789,16 @@ bool ProxyMeta::MergePartialFromCodedStream(
break; break;
} }
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
case 3: { case 3: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
input, this->add_result_channel_ids())); input, this->add_result_channelids()));
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->result_channel_ids(this->result_channel_ids_size() - 1).data(), this->result_channelids(this->result_channelids_size() - 1).data(),
static_cast<int>(this->result_channel_ids(this->result_channel_ids_size() - 1).length()), static_cast<int>(this->result_channelids(this->result_channelids_size() - 1).length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
"milvus.proto.etcd.ProxyMeta.result_channel_ids")); "milvus.proto.etcd.ProxyMeta.result_channelIDs"));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -832,7 +832,7 @@ void ProxyMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
} }
@ -843,14 +843,14 @@ void ProxyMeta::SerializeWithCachedSizes(
2, _Internal::address(this), output); 2, _Internal::address(this), output);
} }
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
for (int i = 0, n = this->result_channel_ids_size(); i < n; i++) { for (int i = 0, n = this->result_channelids_size(); i < n; i++) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->result_channel_ids(i).data(), static_cast<int>(this->result_channel_ids(i).length()), this->result_channelids(i).data(), static_cast<int>(this->result_channelids(i).length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"milvus.proto.etcd.ProxyMeta.result_channel_ids"); "milvus.proto.etcd.ProxyMeta.result_channelIDs");
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
3, this->result_channel_ids(i), output); 3, this->result_channelids(i), output);
} }
if (_internal_metadata_.have_unknown_fields()) { if (_internal_metadata_.have_unknown_fields()) {
@ -866,7 +866,7 @@ void ProxyMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
} }
@ -878,14 +878,14 @@ void ProxyMeta::SerializeWithCachedSizes(
2, _Internal::address(this), target); 2, _Internal::address(this), target);
} }
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
for (int i = 0, n = this->result_channel_ids_size(); i < n; i++) { for (int i = 0, n = this->result_channelids_size(); i < n; i++) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->result_channel_ids(i).data(), static_cast<int>(this->result_channel_ids(i).length()), this->result_channelids(i).data(), static_cast<int>(this->result_channelids(i).length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"milvus.proto.etcd.ProxyMeta.result_channel_ids"); "milvus.proto.etcd.ProxyMeta.result_channelIDs");
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
WriteStringToArray(3, this->result_channel_ids(i), target); WriteStringToArray(3, this->result_channelids(i), target);
} }
if (_internal_metadata_.have_unknown_fields()) { if (_internal_metadata_.have_unknown_fields()) {
@ -909,12 +909,12 @@ size_t ProxyMeta::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
total_size += 1 * total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->result_channel_ids_size()); ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->result_channelids_size());
for (int i = 0, n = this->result_channel_ids_size(); i < n; i++) { for (int i = 0, n = this->result_channelids_size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->result_channel_ids(i)); this->result_channelids(i));
} }
// .milvus.proto.common.Address address = 2; // .milvus.proto.common.Address address = 2;
@ -924,7 +924,7 @@ size_t ProxyMeta::ByteSizeLong() const {
*address_); *address_);
} }
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
@ -958,7 +958,7 @@ void ProxyMeta::MergeFrom(const ProxyMeta& from) {
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
result_channel_ids_.MergeFrom(from.result_channel_ids_); result_channelids_.MergeFrom(from.result_channelids_);
if (from.has_address()) { if (from.has_address()) {
mutable_address()->::milvus::proto::common::Address::MergeFrom(from.address()); mutable_address()->::milvus::proto::common::Address::MergeFrom(from.address());
} }
@ -988,7 +988,7 @@ bool ProxyMeta::IsInitialized() const {
void ProxyMeta::InternalSwap(ProxyMeta* other) { void ProxyMeta::InternalSwap(ProxyMeta* other) {
using std::swap; using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_); _internal_metadata_.Swap(&other->_internal_metadata_);
result_channel_ids_.InternalSwap(CastToBase(&other->result_channel_ids_)); result_channelids_.InternalSwap(CastToBase(&other->result_channelids_));
swap(address_, other->address_); swap(address_, other->address_);
swap(id_, other->id_); swap(id_, other->id_);
} }
@ -1027,7 +1027,7 @@ CollectionMeta::CollectionMeta()
CollectionMeta::CollectionMeta(const CollectionMeta& from) CollectionMeta::CollectionMeta(const CollectionMeta& from)
: ::PROTOBUF_NAMESPACE_ID::Message(), : ::PROTOBUF_NAMESPACE_ID::Message(),
_internal_metadata_(nullptr), _internal_metadata_(nullptr),
segment_ids_(from.segment_ids_), segmentids_(from.segmentids_),
partition_tags_(from.partition_tags_) { partition_tags_(from.partition_tags_) {
_internal_metadata_.MergeFrom(from._internal_metadata_); _internal_metadata_.MergeFrom(from._internal_metadata_);
if (from.has_schema()) { if (from.has_schema()) {
@ -1072,7 +1072,7 @@ void CollectionMeta::Clear() {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
segment_ids_.Clear(); segmentids_.Clear();
partition_tags_.Clear(); partition_tags_.Clear();
if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) {
delete schema_; delete schema_;
@ -1092,7 +1092,7 @@ const char* CollectionMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr); CHK_(ptr);
switch (tag >> 3) { switch (tag >> 3) {
// int64 id = 1; // int64 ID = 1;
case 1: case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
@ -1113,13 +1113,13 @@ const char* CollectionMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
case 4: case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_segment_ids(), ptr, ctx); ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_segmentids(), ptr, ctx);
CHK_(ptr); CHK_(ptr);
} else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) {
add_segment_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); add_segmentids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
@ -1165,7 +1165,7 @@ bool CollectionMeta::MergePartialFromCodedStream(
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 id = 1; // int64 ID = 1;
case 1: { case 1: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
@ -1202,16 +1202,16 @@ bool CollectionMeta::MergePartialFromCodedStream(
break; break;
} }
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
case 4: { case 4: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
input, this->mutable_segment_ids()))); input, this->mutable_segmentids())));
} else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
1, 34u, input, this->mutable_segment_ids()))); 1, 34u, input, this->mutable_segmentids())));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -1261,7 +1261,7 @@ void CollectionMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output);
} }
@ -1277,15 +1277,15 @@ void CollectionMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(3, this->create_time(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(3, this->create_time(), output);
} }
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
if (this->segment_ids_size() > 0) { if (this->segmentids_size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_segment_ids_cached_byte_size_.load( output->WriteVarint32(_segmentids_cached_byte_size_.load(
std::memory_order_relaxed)); std::memory_order_relaxed));
} }
for (int i = 0, n = this->segment_ids_size(); i < n; i++) { for (int i = 0, n = this->segmentids_size(); i < n; i++) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag(
this->segment_ids(i), output); this->segmentids(i), output);
} }
// repeated string partition_tags = 5; // repeated string partition_tags = 5;
@ -1311,7 +1311,7 @@ void CollectionMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
} }
@ -1328,17 +1328,17 @@ void CollectionMeta::SerializeWithCachedSizes(
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->create_time(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->create_time(), target);
} }
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
if (this->segment_ids_size() > 0) { if (this->segmentids_size() > 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
4, 4,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target); target);
target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray(
_segment_ids_cached_byte_size_.load(std::memory_order_relaxed), _segmentids_cached_byte_size_.load(std::memory_order_relaxed),
target); target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
WriteInt64NoTagToArray(this->segment_ids_, target); WriteInt64NoTagToArray(this->segmentids_, target);
} }
// repeated string partition_tags = 5; // repeated string partition_tags = 5;
@ -1372,17 +1372,17 @@ size_t CollectionMeta::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
{ {
size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
Int64Size(this->segment_ids_); Int64Size(this->segmentids_);
if (data_size > 0) { if (data_size > 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size));
} }
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size);
_segment_ids_cached_byte_size_.store(cached_size, _segmentids_cached_byte_size_.store(cached_size,
std::memory_order_relaxed); std::memory_order_relaxed);
total_size += data_size; total_size += data_size;
} }
@ -1402,7 +1402,7 @@ size_t CollectionMeta::ByteSizeLong() const {
*schema_); *schema_);
} }
// int64 id = 1; // int64 ID = 1;
if (this->id() != 0) { if (this->id() != 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
@ -1443,7 +1443,7 @@ void CollectionMeta::MergeFrom(const CollectionMeta& from) {
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
segment_ids_.MergeFrom(from.segment_ids_); segmentids_.MergeFrom(from.segmentids_);
partition_tags_.MergeFrom(from.partition_tags_); partition_tags_.MergeFrom(from.partition_tags_);
if (from.has_schema()) { if (from.has_schema()) {
mutable_schema()->::milvus::proto::schema::CollectionSchema::MergeFrom(from.schema()); mutable_schema()->::milvus::proto::schema::CollectionSchema::MergeFrom(from.schema());
@ -1477,7 +1477,7 @@ bool CollectionMeta::IsInitialized() const {
void CollectionMeta::InternalSwap(CollectionMeta* other) { void CollectionMeta::InternalSwap(CollectionMeta* other) {
using std::swap; using std::swap;
_internal_metadata_.Swap(&other->_internal_metadata_); _internal_metadata_.Swap(&other->_internal_metadata_);
segment_ids_.InternalSwap(&other->segment_ids_); segmentids_.InternalSwap(&other->segmentids_);
partition_tags_.InternalSwap(CastToBase(&other->partition_tags_)); partition_tags_.InternalSwap(CastToBase(&other->partition_tags_));
swap(schema_, other->schema_); swap(schema_, other->schema_);
swap(id_, other->id_); swap(id_, other->id_);
@ -1510,18 +1510,18 @@ SegmentMeta::SegmentMeta(const SegmentMeta& from)
if (!from.partition_tag().empty()) { if (!from.partition_tag().empty()) {
partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_);
} }
::memcpy(&segment_id_, &from.segment_id_, ::memcpy(&segmentid_, &from.segmentid_,
static_cast<size_t>(reinterpret_cast<char*>(&num_rows_) - static_cast<size_t>(reinterpret_cast<char*>(&num_rows_) -
reinterpret_cast<char*>(&segment_id_)) + sizeof(num_rows_)); reinterpret_cast<char*>(&segmentid_)) + sizeof(num_rows_));
// @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.SegmentMeta) // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.SegmentMeta)
} }
void SegmentMeta::SharedCtor() { void SegmentMeta::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SegmentMeta_etcd_5fmeta_2eproto.base); ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SegmentMeta_etcd_5fmeta_2eproto.base);
partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&segment_id_, 0, static_cast<size_t>( ::memset(&segmentid_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&num_rows_) - reinterpret_cast<char*>(&num_rows_) -
reinterpret_cast<char*>(&segment_id_)) + sizeof(num_rows_)); reinterpret_cast<char*>(&segmentid_)) + sizeof(num_rows_));
} }
SegmentMeta::~SegmentMeta() { SegmentMeta::~SegmentMeta() {
@ -1549,9 +1549,9 @@ void SegmentMeta::Clear() {
(void) cached_has_bits; (void) cached_has_bits;
partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
::memset(&segment_id_, 0, static_cast<size_t>( ::memset(&segmentid_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&num_rows_) - reinterpret_cast<char*>(&num_rows_) -
reinterpret_cast<char*>(&segment_id_)) + sizeof(num_rows_)); reinterpret_cast<char*>(&segmentid_)) + sizeof(num_rows_));
_internal_metadata_.Clear(); _internal_metadata_.Clear();
} }
@ -1563,17 +1563,17 @@ const char* SegmentMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr); CHK_(ptr);
switch (tag >> 3) { switch (tag >> 3) {
// int64 segment_id = 1; // int64 segmentID = 1;
case 1: case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); segmentid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
// int64 collection_id = 2; // int64 collectionID = 2;
case 2: case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
collection_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); collectionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
@ -1649,26 +1649,26 @@ bool SegmentMeta::MergePartialFromCodedStream(
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// int64 segment_id = 1; // int64 segmentID = 1;
case 1: { case 1: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
input, &segment_id_))); input, &segmentid_)));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
break; break;
} }
// int64 collection_id = 2; // int64 collectionID = 2;
case 2: { case 2: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
input, &collection_id_))); input, &collectionid_)));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -1782,14 +1782,14 @@ void SegmentMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 segment_id = 1; // int64 segmentID = 1;
if (this->segment_id() != 0) { if (this->segmentid() != 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->segment_id(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->segmentid(), output);
} }
// int64 collection_id = 2; // int64 collectionID = 2;
if (this->collection_id() != 0) { if (this->collectionid() != 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->collection_id(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->collectionid(), output);
} }
// string partition_tag = 3; // string partition_tag = 3;
@ -1840,14 +1840,14 @@ void SegmentMeta::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// int64 segment_id = 1; // int64 segmentID = 1;
if (this->segment_id() != 0) { if (this->segmentid() != 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->segment_id(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->segmentid(), target);
} }
// int64 collection_id = 2; // int64 collectionID = 2;
if (this->collection_id() != 0) { if (this->collectionid() != 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->collection_id(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->collectionid(), target);
} }
// string partition_tag = 3; // string partition_tag = 3;
@ -1914,18 +1914,18 @@ size_t SegmentMeta::ByteSizeLong() const {
this->partition_tag()); this->partition_tag());
} }
// int64 segment_id = 1; // int64 segmentID = 1;
if (this->segment_id() != 0) { if (this->segmentid() != 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->segment_id()); this->segmentid());
} }
// int64 collection_id = 2; // int64 collectionID = 2;
if (this->collection_id() != 0) { if (this->collectionid() != 0) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
this->collection_id()); this->collectionid());
} }
// int32 channel_start = 4; // int32 channel_start = 4;
@ -1994,11 +1994,11 @@ void SegmentMeta::MergeFrom(const SegmentMeta& from) {
partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_);
} }
if (from.segment_id() != 0) { if (from.segmentid() != 0) {
set_segment_id(from.segment_id()); set_segmentid(from.segmentid());
} }
if (from.collection_id() != 0) { if (from.collectionid() != 0) {
set_collection_id(from.collection_id()); set_collectionid(from.collectionid());
} }
if (from.channel_start() != 0) { if (from.channel_start() != 0) {
set_channel_start(from.channel_start()); set_channel_start(from.channel_start());
@ -2040,8 +2040,8 @@ void SegmentMeta::InternalSwap(SegmentMeta* other) {
_internal_metadata_.Swap(&other->_internal_metadata_); _internal_metadata_.Swap(&other->_internal_metadata_);
partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual()); GetArenaNoVirtual());
swap(segment_id_, other->segment_id_); swap(segmentid_, other->segmentid_);
swap(collection_id_, other->collection_id_); swap(collectionid_, other->collectionid_);
swap(channel_start_, other->channel_start_); swap(channel_start_, other->channel_start_);
swap(channel_end_, other->channel_end_); swap(channel_end_, other->channel_end_);
swap(open_time_, other->open_time_); swap(open_time_, other->open_time_);

View File

@ -199,40 +199,40 @@ class TenantMeta :
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kInsertChannelIdsFieldNumber = 3, kInsertChannelIDsFieldNumber = 3,
kQueryChannelIdFieldNumber = 4, kQueryChannelIDFieldNumber = 4,
kIdFieldNumber = 1, kIDFieldNumber = 1,
kNumQueryNodesFieldNumber = 2, kNumQueryNodesFieldNumber = 2,
}; };
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
int insert_channel_ids_size() const; int insert_channelids_size() const;
void clear_insert_channel_ids(); void clear_insert_channelids();
const std::string& insert_channel_ids(int index) const; const std::string& insert_channelids(int index) const;
std::string* mutable_insert_channel_ids(int index); std::string* mutable_insert_channelids(int index);
void set_insert_channel_ids(int index, const std::string& value); void set_insert_channelids(int index, const std::string& value);
void set_insert_channel_ids(int index, std::string&& value); void set_insert_channelids(int index, std::string&& value);
void set_insert_channel_ids(int index, const char* value); void set_insert_channelids(int index, const char* value);
void set_insert_channel_ids(int index, const char* value, size_t size); void set_insert_channelids(int index, const char* value, size_t size);
std::string* add_insert_channel_ids(); std::string* add_insert_channelids();
void add_insert_channel_ids(const std::string& value); void add_insert_channelids(const std::string& value);
void add_insert_channel_ids(std::string&& value); void add_insert_channelids(std::string&& value);
void add_insert_channel_ids(const char* value); void add_insert_channelids(const char* value);
void add_insert_channel_ids(const char* value, size_t size); void add_insert_channelids(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& insert_channel_ids() const; const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& insert_channelids() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_insert_channel_ids(); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_insert_channelids();
// string query_channel_id = 4; // string query_channelID = 4;
void clear_query_channel_id(); void clear_query_channelid();
const std::string& query_channel_id() const; const std::string& query_channelid() const;
void set_query_channel_id(const std::string& value); void set_query_channelid(const std::string& value);
void set_query_channel_id(std::string&& value); void set_query_channelid(std::string&& value);
void set_query_channel_id(const char* value); void set_query_channelid(const char* value);
void set_query_channel_id(const char* value, size_t size); void set_query_channelid(const char* value, size_t size);
std::string* mutable_query_channel_id(); std::string* mutable_query_channelid();
std::string* release_query_channel_id(); std::string* release_query_channelid();
void set_allocated_query_channel_id(std::string* query_channel_id); void set_allocated_query_channelid(std::string* query_channelid);
// int64 id = 1; // int64 ID = 1;
void clear_id(); void clear_id();
::PROTOBUF_NAMESPACE_ID::int64 id() const; ::PROTOBUF_NAMESPACE_ID::int64 id() const;
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
@ -247,8 +247,8 @@ class TenantMeta :
class _Internal; class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> insert_channel_ids_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> insert_channelids_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_channel_id_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_channelid_;
::PROTOBUF_NAMESPACE_ID::int64 id_; ::PROTOBUF_NAMESPACE_ID::int64 id_;
::PROTOBUF_NAMESPACE_ID::int64 num_query_nodes_; ::PROTOBUF_NAMESPACE_ID::int64 num_query_nodes_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@ -369,26 +369,26 @@ class ProxyMeta :
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kResultChannelIdsFieldNumber = 3, kResultChannelIDsFieldNumber = 3,
kAddressFieldNumber = 2, kAddressFieldNumber = 2,
kIdFieldNumber = 1, kIDFieldNumber = 1,
}; };
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
int result_channel_ids_size() const; int result_channelids_size() const;
void clear_result_channel_ids(); void clear_result_channelids();
const std::string& result_channel_ids(int index) const; const std::string& result_channelids(int index) const;
std::string* mutable_result_channel_ids(int index); std::string* mutable_result_channelids(int index);
void set_result_channel_ids(int index, const std::string& value); void set_result_channelids(int index, const std::string& value);
void set_result_channel_ids(int index, std::string&& value); void set_result_channelids(int index, std::string&& value);
void set_result_channel_ids(int index, const char* value); void set_result_channelids(int index, const char* value);
void set_result_channel_ids(int index, const char* value, size_t size); void set_result_channelids(int index, const char* value, size_t size);
std::string* add_result_channel_ids(); std::string* add_result_channelids();
void add_result_channel_ids(const std::string& value); void add_result_channelids(const std::string& value);
void add_result_channel_ids(std::string&& value); void add_result_channelids(std::string&& value);
void add_result_channel_ids(const char* value); void add_result_channelids(const char* value);
void add_result_channel_ids(const char* value, size_t size); void add_result_channelids(const char* value, size_t size);
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& result_channel_ids() const; const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& result_channelids() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_result_channel_ids(); ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_result_channelids();
// .milvus.proto.common.Address address = 2; // .milvus.proto.common.Address address = 2;
bool has_address() const; bool has_address() const;
@ -398,7 +398,7 @@ class ProxyMeta :
::milvus::proto::common::Address* mutable_address(); ::milvus::proto::common::Address* mutable_address();
void set_allocated_address(::milvus::proto::common::Address* address); void set_allocated_address(::milvus::proto::common::Address* address);
// int64 id = 1; // int64 ID = 1;
void clear_id(); void clear_id();
::PROTOBUF_NAMESPACE_ID::int64 id() const; ::PROTOBUF_NAMESPACE_ID::int64 id() const;
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
@ -408,7 +408,7 @@ class ProxyMeta :
class _Internal; class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> result_channel_ids_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> result_channelids_;
::milvus::proto::common::Address* address_; ::milvus::proto::common::Address* address_;
::PROTOBUF_NAMESPACE_ID::int64 id_; ::PROTOBUF_NAMESPACE_ID::int64 id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@ -529,22 +529,22 @@ class CollectionMeta :
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kSegmentIdsFieldNumber = 4, kSegmentIDsFieldNumber = 4,
kPartitionTagsFieldNumber = 5, kPartitionTagsFieldNumber = 5,
kSchemaFieldNumber = 2, kSchemaFieldNumber = 2,
kIdFieldNumber = 1, kIDFieldNumber = 1,
kCreateTimeFieldNumber = 3, kCreateTimeFieldNumber = 3,
}; };
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
int segment_ids_size() const; int segmentids_size() const;
void clear_segment_ids(); void clear_segmentids();
::PROTOBUF_NAMESPACE_ID::int64 segment_ids(int index) const; ::PROTOBUF_NAMESPACE_ID::int64 segmentids(int index) const;
void set_segment_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); void set_segmentids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value);
void add_segment_ids(::PROTOBUF_NAMESPACE_ID::int64 value); void add_segmentids(::PROTOBUF_NAMESPACE_ID::int64 value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
segment_ids() const; segmentids() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
mutable_segment_ids(); mutable_segmentids();
// repeated string partition_tags = 5; // repeated string partition_tags = 5;
int partition_tags_size() const; int partition_tags_size() const;
@ -571,7 +571,7 @@ class CollectionMeta :
::milvus::proto::schema::CollectionSchema* mutable_schema(); ::milvus::proto::schema::CollectionSchema* mutable_schema();
void set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema); void set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema);
// int64 id = 1; // int64 ID = 1;
void clear_id(); void clear_id();
::PROTOBUF_NAMESPACE_ID::int64 id() const; ::PROTOBUF_NAMESPACE_ID::int64 id() const;
void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); void set_id(::PROTOBUF_NAMESPACE_ID::int64 value);
@ -586,8 +586,8 @@ class CollectionMeta :
class _Internal; class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > segment_ids_; ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > segmentids_;
mutable std::atomic<int> _segment_ids_cached_byte_size_; mutable std::atomic<int> _segmentids_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_tags_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> partition_tags_;
::milvus::proto::schema::CollectionSchema* schema_; ::milvus::proto::schema::CollectionSchema* schema_;
::PROTOBUF_NAMESPACE_ID::int64 id_; ::PROTOBUF_NAMESPACE_ID::int64 id_;
@ -711,8 +711,8 @@ class SegmentMeta :
enum : int { enum : int {
kPartitionTagFieldNumber = 3, kPartitionTagFieldNumber = 3,
kSegmentIdFieldNumber = 1, kSegmentIDFieldNumber = 1,
kCollectionIdFieldNumber = 2, kCollectionIDFieldNumber = 2,
kChannelStartFieldNumber = 4, kChannelStartFieldNumber = 4,
kChannelEndFieldNumber = 5, kChannelEndFieldNumber = 5,
kOpenTimeFieldNumber = 6, kOpenTimeFieldNumber = 6,
@ -730,15 +730,15 @@ class SegmentMeta :
std::string* release_partition_tag(); std::string* release_partition_tag();
void set_allocated_partition_tag(std::string* partition_tag); void set_allocated_partition_tag(std::string* partition_tag);
// int64 segment_id = 1; // int64 segmentID = 1;
void clear_segment_id(); void clear_segmentid();
::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; ::PROTOBUF_NAMESPACE_ID::int64 segmentid() const;
void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); void set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value);
// int64 collection_id = 2; // int64 collectionID = 2;
void clear_collection_id(); void clear_collectionid();
::PROTOBUF_NAMESPACE_ID::int64 collection_id() const; ::PROTOBUF_NAMESPACE_ID::int64 collectionid() const;
void set_collection_id(::PROTOBUF_NAMESPACE_ID::int64 value); void set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value);
// int32 channel_start = 4; // int32 channel_start = 4;
void clear_channel_start(); void clear_channel_start();
@ -771,8 +771,8 @@ class SegmentMeta :
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_;
::PROTOBUF_NAMESPACE_ID::int64 segment_id_; ::PROTOBUF_NAMESPACE_ID::int64 segmentid_;
::PROTOBUF_NAMESPACE_ID::int64 collection_id_; ::PROTOBUF_NAMESPACE_ID::int64 collectionid_;
::PROTOBUF_NAMESPACE_ID::int32 channel_start_; ::PROTOBUF_NAMESPACE_ID::int32 channel_start_;
::PROTOBUF_NAMESPACE_ID::int32 channel_end_; ::PROTOBUF_NAMESPACE_ID::int32 channel_end_;
::PROTOBUF_NAMESPACE_ID::uint64 open_time_; ::PROTOBUF_NAMESPACE_ID::uint64 open_time_;
@ -792,18 +792,18 @@ class SegmentMeta :
#endif // __GNUC__ #endif // __GNUC__
// TenantMeta // TenantMeta
// int64 id = 1; // int64 ID = 1;
inline void TenantMeta::clear_id() { inline void TenantMeta::clear_id() {
id_ = PROTOBUF_LONGLONG(0); id_ = PROTOBUF_LONGLONG(0);
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 TenantMeta::id() const { inline ::PROTOBUF_NAMESPACE_ID::int64 TenantMeta::id() const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.id) // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.ID)
return id_; return id_;
} }
inline void TenantMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void TenantMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
id_ = value; id_ = value;
// @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.id) // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.ID)
} }
// int64 num_query_nodes = 2; // int64 num_query_nodes = 2;
@ -820,138 +820,138 @@ inline void TenantMeta::set_num_query_nodes(::PROTOBUF_NAMESPACE_ID::int64 value
// @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.num_query_nodes) // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.num_query_nodes)
} }
// repeated string insert_channel_ids = 3; // repeated string insert_channelIDs = 3;
inline int TenantMeta::insert_channel_ids_size() const { inline int TenantMeta::insert_channelids_size() const {
return insert_channel_ids_.size(); return insert_channelids_.size();
} }
inline void TenantMeta::clear_insert_channel_ids() { inline void TenantMeta::clear_insert_channelids() {
insert_channel_ids_.Clear(); insert_channelids_.Clear();
} }
inline const std::string& TenantMeta::insert_channel_ids(int index) const { inline const std::string& TenantMeta::insert_channelids(int index) const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.insert_channelIDs)
return insert_channel_ids_.Get(index); return insert_channelids_.Get(index);
} }
inline std::string* TenantMeta::mutable_insert_channel_ids(int index) { inline std::string* TenantMeta::mutable_insert_channelids(int index) {
// @@protoc_insertion_point(field_mutable:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.TenantMeta.insert_channelIDs)
return insert_channel_ids_.Mutable(index); return insert_channelids_.Mutable(index);
} }
inline void TenantMeta::set_insert_channel_ids(int index, const std::string& value) { inline void TenantMeta::set_insert_channelids(int index, const std::string& value) {
// @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.insert_channelIDs)
insert_channel_ids_.Mutable(index)->assign(value); insert_channelids_.Mutable(index)->assign(value);
} }
inline void TenantMeta::set_insert_channel_ids(int index, std::string&& value) { inline void TenantMeta::set_insert_channelids(int index, std::string&& value) {
// @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.insert_channelIDs)
insert_channel_ids_.Mutable(index)->assign(std::move(value)); insert_channelids_.Mutable(index)->assign(std::move(value));
} }
inline void TenantMeta::set_insert_channel_ids(int index, const char* value) { inline void TenantMeta::set_insert_channelids(int index, const char* value) {
GOOGLE_DCHECK(value != nullptr); GOOGLE_DCHECK(value != nullptr);
insert_channel_ids_.Mutable(index)->assign(value); insert_channelids_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.TenantMeta.insert_channelIDs)
} }
inline void TenantMeta::set_insert_channel_ids(int index, const char* value, size_t size) { inline void TenantMeta::set_insert_channelids(int index, const char* value, size_t size) {
insert_channel_ids_.Mutable(index)->assign( insert_channelids_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.TenantMeta.insert_channelIDs)
} }
inline std::string* TenantMeta::add_insert_channel_ids() { inline std::string* TenantMeta::add_insert_channelids() {
// @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.TenantMeta.insert_channelIDs)
return insert_channel_ids_.Add(); return insert_channelids_.Add();
} }
inline void TenantMeta::add_insert_channel_ids(const std::string& value) { inline void TenantMeta::add_insert_channelids(const std::string& value) {
insert_channel_ids_.Add()->assign(value); insert_channelids_.Add()->assign(value);
// @@protoc_insertion_point(field_add:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_add:milvus.proto.etcd.TenantMeta.insert_channelIDs)
} }
inline void TenantMeta::add_insert_channel_ids(std::string&& value) { inline void TenantMeta::add_insert_channelids(std::string&& value) {
insert_channel_ids_.Add(std::move(value)); insert_channelids_.Add(std::move(value));
// @@protoc_insertion_point(field_add:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_add:milvus.proto.etcd.TenantMeta.insert_channelIDs)
} }
inline void TenantMeta::add_insert_channel_ids(const char* value) { inline void TenantMeta::add_insert_channelids(const char* value) {
GOOGLE_DCHECK(value != nullptr); GOOGLE_DCHECK(value != nullptr);
insert_channel_ids_.Add()->assign(value); insert_channelids_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.TenantMeta.insert_channelIDs)
} }
inline void TenantMeta::add_insert_channel_ids(const char* value, size_t size) { inline void TenantMeta::add_insert_channelids(const char* value, size_t size) {
insert_channel_ids_.Add()->assign(reinterpret_cast<const char*>(value), size); insert_channelids_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.TenantMeta.insert_channelIDs)
} }
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
TenantMeta::insert_channel_ids() const { TenantMeta::insert_channelids() const {
// @@protoc_insertion_point(field_list:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_list:milvus.proto.etcd.TenantMeta.insert_channelIDs)
return insert_channel_ids_; return insert_channelids_;
} }
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
TenantMeta::mutable_insert_channel_ids() { TenantMeta::mutable_insert_channelids() {
// @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.TenantMeta.insert_channel_ids) // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.TenantMeta.insert_channelIDs)
return &insert_channel_ids_; return &insert_channelids_;
} }
// string query_channel_id = 4; // string query_channelID = 4;
inline void TenantMeta::clear_query_channel_id() { inline void TenantMeta::clear_query_channelid() {
query_channel_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); query_channelid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
} }
inline const std::string& TenantMeta::query_channel_id() const { inline const std::string& TenantMeta::query_channelid() const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.query_channelID)
return query_channel_id_.GetNoArena(); return query_channelid_.GetNoArena();
} }
inline void TenantMeta::set_query_channel_id(const std::string& value) { inline void TenantMeta::set_query_channelid(const std::string& value) {
query_channel_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); query_channelid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.query_channelID)
} }
inline void TenantMeta::set_query_channel_id(std::string&& value) { inline void TenantMeta::set_query_channelid(std::string&& value) {
query_channel_id_.SetNoArena( query_channelid_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_set_rvalue:milvus.proto.etcd.TenantMeta.query_channelID)
} }
inline void TenantMeta::set_query_channel_id(const char* value) { inline void TenantMeta::set_query_channelid(const char* value) {
GOOGLE_DCHECK(value != nullptr); GOOGLE_DCHECK(value != nullptr);
query_channel_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); query_channelid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.TenantMeta.query_channelID)
} }
inline void TenantMeta::set_query_channel_id(const char* value, size_t size) { inline void TenantMeta::set_query_channelid(const char* value, size_t size) {
query_channel_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query_channelid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size)); ::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.TenantMeta.query_channelID)
} }
inline std::string* TenantMeta::mutable_query_channel_id() { inline std::string* TenantMeta::mutable_query_channelid() {
// @@protoc_insertion_point(field_mutable:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.TenantMeta.query_channelID)
return query_channel_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); return query_channelid_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
} }
inline std::string* TenantMeta::release_query_channel_id() { inline std::string* TenantMeta::release_query_channelid() {
// @@protoc_insertion_point(field_release:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_release:milvus.proto.etcd.TenantMeta.query_channelID)
return query_channel_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); return query_channelid_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
} }
inline void TenantMeta::set_allocated_query_channel_id(std::string* query_channel_id) { inline void TenantMeta::set_allocated_query_channelid(std::string* query_channelid) {
if (query_channel_id != nullptr) { if (query_channelid != nullptr) {
} else { } else {
} }
query_channel_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query_channel_id); query_channelid_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query_channelid);
// @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.TenantMeta.query_channel_id) // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.TenantMeta.query_channelID)
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// ProxyMeta // ProxyMeta
// int64 id = 1; // int64 ID = 1;
inline void ProxyMeta::clear_id() { inline void ProxyMeta::clear_id() {
id_ = PROTOBUF_LONGLONG(0); id_ = PROTOBUF_LONGLONG(0);
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 ProxyMeta::id() const { inline ::PROTOBUF_NAMESPACE_ID::int64 ProxyMeta::id() const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.id) // @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.ID)
return id_; return id_;
} }
inline void ProxyMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void ProxyMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
id_ = value; id_ = value;
// @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.id) // @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.ID)
} }
// .milvus.proto.common.Address address = 2; // .milvus.proto.common.Address address = 2;
@ -999,87 +999,87 @@ inline void ProxyMeta::set_allocated_address(::milvus::proto::common::Address* a
// @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.ProxyMeta.address) // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.ProxyMeta.address)
} }
// repeated string result_channel_ids = 3; // repeated string result_channelIDs = 3;
inline int ProxyMeta::result_channel_ids_size() const { inline int ProxyMeta::result_channelids_size() const {
return result_channel_ids_.size(); return result_channelids_.size();
} }
inline void ProxyMeta::clear_result_channel_ids() { inline void ProxyMeta::clear_result_channelids() {
result_channel_ids_.Clear(); result_channelids_.Clear();
} }
inline const std::string& ProxyMeta::result_channel_ids(int index) const { inline const std::string& ProxyMeta::result_channelids(int index) const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.result_channelIDs)
return result_channel_ids_.Get(index); return result_channelids_.Get(index);
} }
inline std::string* ProxyMeta::mutable_result_channel_ids(int index) { inline std::string* ProxyMeta::mutable_result_channelids(int index) {
// @@protoc_insertion_point(field_mutable:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.ProxyMeta.result_channelIDs)
return result_channel_ids_.Mutable(index); return result_channelids_.Mutable(index);
} }
inline void ProxyMeta::set_result_channel_ids(int index, const std::string& value) { inline void ProxyMeta::set_result_channelids(int index, const std::string& value) {
// @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.result_channelIDs)
result_channel_ids_.Mutable(index)->assign(value); result_channelids_.Mutable(index)->assign(value);
} }
inline void ProxyMeta::set_result_channel_ids(int index, std::string&& value) { inline void ProxyMeta::set_result_channelids(int index, std::string&& value) {
// @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.result_channelIDs)
result_channel_ids_.Mutable(index)->assign(std::move(value)); result_channelids_.Mutable(index)->assign(std::move(value));
} }
inline void ProxyMeta::set_result_channel_ids(int index, const char* value) { inline void ProxyMeta::set_result_channelids(int index, const char* value) {
GOOGLE_DCHECK(value != nullptr); GOOGLE_DCHECK(value != nullptr);
result_channel_ids_.Mutable(index)->assign(value); result_channelids_.Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.ProxyMeta.result_channelIDs)
} }
inline void ProxyMeta::set_result_channel_ids(int index, const char* value, size_t size) { inline void ProxyMeta::set_result_channelids(int index, const char* value, size_t size) {
result_channel_ids_.Mutable(index)->assign( result_channelids_.Mutable(index)->assign(
reinterpret_cast<const char*>(value), size); reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.ProxyMeta.result_channelIDs)
} }
inline std::string* ProxyMeta::add_result_channel_ids() { inline std::string* ProxyMeta::add_result_channelids() {
// @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.ProxyMeta.result_channelIDs)
return result_channel_ids_.Add(); return result_channelids_.Add();
} }
inline void ProxyMeta::add_result_channel_ids(const std::string& value) { inline void ProxyMeta::add_result_channelids(const std::string& value) {
result_channel_ids_.Add()->assign(value); result_channelids_.Add()->assign(value);
// @@protoc_insertion_point(field_add:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_add:milvus.proto.etcd.ProxyMeta.result_channelIDs)
} }
inline void ProxyMeta::add_result_channel_ids(std::string&& value) { inline void ProxyMeta::add_result_channelids(std::string&& value) {
result_channel_ids_.Add(std::move(value)); result_channelids_.Add(std::move(value));
// @@protoc_insertion_point(field_add:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_add:milvus.proto.etcd.ProxyMeta.result_channelIDs)
} }
inline void ProxyMeta::add_result_channel_ids(const char* value) { inline void ProxyMeta::add_result_channelids(const char* value) {
GOOGLE_DCHECK(value != nullptr); GOOGLE_DCHECK(value != nullptr);
result_channel_ids_.Add()->assign(value); result_channelids_.Add()->assign(value);
// @@protoc_insertion_point(field_add_char:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.ProxyMeta.result_channelIDs)
} }
inline void ProxyMeta::add_result_channel_ids(const char* value, size_t size) { inline void ProxyMeta::add_result_channelids(const char* value, size_t size) {
result_channel_ids_.Add()->assign(reinterpret_cast<const char*>(value), size); result_channelids_.Add()->assign(reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.ProxyMeta.result_channelIDs)
} }
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
ProxyMeta::result_channel_ids() const { ProxyMeta::result_channelids() const {
// @@protoc_insertion_point(field_list:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_list:milvus.proto.etcd.ProxyMeta.result_channelIDs)
return result_channel_ids_; return result_channelids_;
} }
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
ProxyMeta::mutable_result_channel_ids() { ProxyMeta::mutable_result_channelids() {
// @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.ProxyMeta.result_channel_ids) // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.ProxyMeta.result_channelIDs)
return &result_channel_ids_; return &result_channelids_;
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// CollectionMeta // CollectionMeta
// int64 id = 1; // int64 ID = 1;
inline void CollectionMeta::clear_id() { inline void CollectionMeta::clear_id() {
id_ = PROTOBUF_LONGLONG(0); id_ = PROTOBUF_LONGLONG(0);
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::id() const { inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::id() const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.id) // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.ID)
return id_; return id_;
} }
inline void CollectionMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void CollectionMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) {
id_ = value; id_ = value;
// @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.id) // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.ID)
} }
// .milvus.proto.schema.CollectionSchema schema = 2; // .milvus.proto.schema.CollectionSchema schema = 2;
@ -1141,34 +1141,34 @@ inline void CollectionMeta::set_create_time(::PROTOBUF_NAMESPACE_ID::uint64 valu
// @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.create_time) // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.create_time)
} }
// repeated int64 segment_ids = 4; // repeated int64 segmentIDs = 4;
inline int CollectionMeta::segment_ids_size() const { inline int CollectionMeta::segmentids_size() const {
return segment_ids_.size(); return segmentids_.size();
} }
inline void CollectionMeta::clear_segment_ids() { inline void CollectionMeta::clear_segmentids() {
segment_ids_.Clear(); segmentids_.Clear();
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::segment_ids(int index) const { inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::segmentids(int index) const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.segment_ids) // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.segmentIDs)
return segment_ids_.Get(index); return segmentids_.Get(index);
} }
inline void CollectionMeta::set_segment_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { inline void CollectionMeta::set_segmentids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) {
segment_ids_.Set(index, value); segmentids_.Set(index, value);
// @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.segment_ids) // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.segmentIDs)
} }
inline void CollectionMeta::add_segment_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void CollectionMeta::add_segmentids(::PROTOBUF_NAMESPACE_ID::int64 value) {
segment_ids_.Add(value); segmentids_.Add(value);
// @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionMeta.segment_ids) // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionMeta.segmentIDs)
} }
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
CollectionMeta::segment_ids() const { CollectionMeta::segmentids() const {
// @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionMeta.segment_ids) // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionMeta.segmentIDs)
return segment_ids_; return segmentids_;
} }
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
CollectionMeta::mutable_segment_ids() { CollectionMeta::mutable_segmentids() {
// @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionMeta.segment_ids) // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionMeta.segmentIDs)
return &segment_ids_; return &segmentids_;
} }
// repeated string partition_tags = 5; // repeated string partition_tags = 5;
@ -1240,32 +1240,32 @@ CollectionMeta::mutable_partition_tags() {
// SegmentMeta // SegmentMeta
// int64 segment_id = 1; // int64 segmentID = 1;
inline void SegmentMeta::clear_segment_id() { inline void SegmentMeta::clear_segmentid() {
segment_id_ = PROTOBUF_LONGLONG(0); segmentid_ = PROTOBUF_LONGLONG(0);
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentMeta::segment_id() const { inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentMeta::segmentid() const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentMeta.segment_id) // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentMeta.segmentID)
return segment_id_; return segmentid_;
} }
inline void SegmentMeta::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void SegmentMeta::set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value) {
segment_id_ = value; segmentid_ = value;
// @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentMeta.segment_id) // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentMeta.segmentID)
} }
// int64 collection_id = 2; // int64 collectionID = 2;
inline void SegmentMeta::clear_collection_id() { inline void SegmentMeta::clear_collectionid() {
collection_id_ = PROTOBUF_LONGLONG(0); collectionid_ = PROTOBUF_LONGLONG(0);
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentMeta::collection_id() const { inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentMeta::collectionid() const {
// @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentMeta.collection_id) // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentMeta.collectionID)
return collection_id_; return collectionid_;
} }
inline void SegmentMeta::set_collection_id(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void SegmentMeta::set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value) {
collection_id_ = value; collectionid_ = value;
// @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentMeta.collection_id) // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentMeta.collectionID)
} }
// string partition_tag = 3; // string partition_tag = 3;

View File

@ -83,7 +83,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_schema_2eproto::offsets[] PROT
~0u, // no _weak_field_map_ ~0u, // no _weak_field_map_
PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, name_), PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, name_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, description_), PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, description_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, auto_id_), PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, autoid_),
PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, fields_), PROTOBUF_FIELD_OFFSET(::milvus::proto::schema::CollectionSchema, fields_),
}; };
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
@ -103,16 +103,16 @@ const char descriptor_table_protodef_schema_2eproto[] PROTOBUF_SECTION_VARIABLE(
"\035.milvus.proto.schema.DataType\0226\n\013type_p" "\035.milvus.proto.schema.DataType\0226\n\013type_p"
"arams\030\004 \003(\0132!.milvus.proto.common.KeyVal" "arams\030\004 \003(\0132!.milvus.proto.common.KeyVal"
"uePair\0227\n\014index_params\030\005 \003(\0132!.milvus.pr" "uePair\0227\n\014index_params\030\005 \003(\0132!.milvus.pr"
"oto.common.KeyValuePair\"x\n\020CollectionSch" "oto.common.KeyValuePair\"w\n\020CollectionSch"
"ema\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\017" "ema\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016"
"\n\007auto_id\030\003 \001(\010\0220\n\006fields\030\004 \003(\0132 .milvus" "\n\006autoID\030\003 \001(\010\0220\n\006fields\030\004 \003(\0132 .milvus."
".proto.schema.FieldSchema*\221\001\n\010DataType\022\010" "proto.schema.FieldSchema*\221\001\n\010DataType\022\010\n"
"\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n\005INT16\020\003\022" "\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n\005INT16\020\003\022\t"
"\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020\n\022\n\n\006DOUB" "\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020\n\022\n\n\006DOUBL"
"LE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINARY\020d\022\020\n\014V" "E\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINARY\020d\022\020\n\014VE"
"ECTOR_FLOAT\020eBBZ@github.com/zilliztech/m" "CTOR_FLOAT\020eBBZ@github.com/zilliztech/mi"
"ilvus-distributed/internal/proto/schemap" "lvus-distributed/internal/proto/schemapb"
"bb\006proto3" "b\006proto3"
; ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_schema_2eproto_deps[1] = { static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_schema_2eproto_deps[1] = {
&::descriptor_table_common_2eproto, &::descriptor_table_common_2eproto,
@ -124,7 +124,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_sch
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_schema_2eproto_once; static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_schema_2eproto_once;
static bool descriptor_table_schema_2eproto_initialized = false; static bool descriptor_table_schema_2eproto_initialized = false;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_2eproto = { const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_2eproto = {
&descriptor_table_schema_2eproto_initialized, descriptor_table_protodef_schema_2eproto, "schema.proto", 609, &descriptor_table_schema_2eproto_initialized, descriptor_table_protodef_schema_2eproto, "schema.proto", 608,
&descriptor_table_schema_2eproto_once, descriptor_table_schema_2eproto_sccs, descriptor_table_schema_2eproto_deps, 2, 1, &descriptor_table_schema_2eproto_once, descriptor_table_schema_2eproto_sccs, descriptor_table_schema_2eproto_deps, 2, 1,
schemas, file_default_instances, TableStruct_schema_2eproto::offsets, schemas, file_default_instances, TableStruct_schema_2eproto::offsets,
file_level_metadata_schema_2eproto, 2, file_level_enum_descriptors_schema_2eproto, file_level_service_descriptors_schema_2eproto, file_level_metadata_schema_2eproto, 2, file_level_enum_descriptors_schema_2eproto, file_level_service_descriptors_schema_2eproto,
@ -680,7 +680,7 @@ CollectionSchema::CollectionSchema(const CollectionSchema& from)
if (!from.description().empty()) { if (!from.description().empty()) {
description_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description_); description_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description_);
} }
auto_id_ = from.auto_id_; autoid_ = from.autoid_;
// @@protoc_insertion_point(copy_constructor:milvus.proto.schema.CollectionSchema) // @@protoc_insertion_point(copy_constructor:milvus.proto.schema.CollectionSchema)
} }
@ -688,7 +688,7 @@ void CollectionSchema::SharedCtor() {
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionSchema_schema_2eproto.base); ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionSchema_schema_2eproto.base);
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
auto_id_ = false; autoid_ = false;
} }
CollectionSchema::~CollectionSchema() { CollectionSchema::~CollectionSchema() {
@ -719,7 +719,7 @@ void CollectionSchema::Clear() {
fields_.Clear(); fields_.Clear();
name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
description_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
auto_id_ = false; autoid_ = false;
_internal_metadata_.Clear(); _internal_metadata_.Clear();
} }
@ -745,10 +745,10 @@ const char* CollectionSchema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
// bool auto_id = 3; // bool autoID = 3;
case 3: case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
auto_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); autoid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
CHK_(ptr); CHK_(ptr);
} else goto handle_unusual; } else goto handle_unusual;
continue; continue;
@ -824,13 +824,13 @@ bool CollectionSchema::MergePartialFromCodedStream(
break; break;
} }
// bool auto_id = 3; // bool autoID = 3;
case 3: { case 3: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
input, &auto_id_))); input, &autoid_)));
} else { } else {
goto handle_unusual; goto handle_unusual;
} }
@ -895,9 +895,9 @@ void CollectionSchema::SerializeWithCachedSizes(
2, this->description(), output); 2, this->description(), output);
} }
// bool auto_id = 3; // bool autoID = 3;
if (this->auto_id() != 0) { if (this->autoid() != 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->auto_id(), output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->autoid(), output);
} }
// repeated .milvus.proto.schema.FieldSchema fields = 4; // repeated .milvus.proto.schema.FieldSchema fields = 4;
@ -944,9 +944,9 @@ void CollectionSchema::SerializeWithCachedSizes(
2, this->description(), target); 2, this->description(), target);
} }
// bool auto_id = 3; // bool autoID = 3;
if (this->auto_id() != 0) { if (this->autoid() != 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->auto_id(), target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->autoid(), target);
} }
// repeated .milvus.proto.schema.FieldSchema fields = 4; // repeated .milvus.proto.schema.FieldSchema fields = 4;
@ -1003,8 +1003,8 @@ size_t CollectionSchema::ByteSizeLong() const {
this->description()); this->description());
} }
// bool auto_id = 3; // bool autoID = 3;
if (this->auto_id() != 0) { if (this->autoid() != 0) {
total_size += 1 + 1; total_size += 1 + 1;
} }
@ -1044,8 +1044,8 @@ void CollectionSchema::MergeFrom(const CollectionSchema& from) {
description_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description_); description_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description_);
} }
if (from.auto_id() != 0) { if (from.autoid() != 0) {
set_auto_id(from.auto_id()); set_autoid(from.autoid());
} }
} }
@ -1075,7 +1075,7 @@ void CollectionSchema::InternalSwap(CollectionSchema* other) {
GetArenaNoVirtual()); GetArenaNoVirtual());
description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
GetArenaNoVirtual()); GetArenaNoVirtual());
swap(auto_id_, other->auto_id_); swap(autoid_, other->autoid_);
} }
::PROTOBUF_NAMESPACE_ID::Metadata CollectionSchema::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata CollectionSchema::GetMetadata() const {

View File

@ -411,7 +411,7 @@ class CollectionSchema :
kFieldsFieldNumber = 4, kFieldsFieldNumber = 4,
kNameFieldNumber = 1, kNameFieldNumber = 1,
kDescriptionFieldNumber = 2, kDescriptionFieldNumber = 2,
kAutoIdFieldNumber = 3, kAutoIDFieldNumber = 3,
}; };
// repeated .milvus.proto.schema.FieldSchema fields = 4; // repeated .milvus.proto.schema.FieldSchema fields = 4;
int fields_size() const; int fields_size() const;
@ -446,10 +446,10 @@ class CollectionSchema :
std::string* release_description(); std::string* release_description();
void set_allocated_description(std::string* description); void set_allocated_description(std::string* description);
// bool auto_id = 3; // bool autoID = 3;
void clear_auto_id(); void clear_autoid();
bool auto_id() const; bool autoid() const;
void set_auto_id(bool value); void set_autoid(bool value);
// @@protoc_insertion_point(class_scope:milvus.proto.schema.CollectionSchema) // @@protoc_insertion_point(class_scope:milvus.proto.schema.CollectionSchema)
private: private:
@ -459,7 +459,7 @@ class CollectionSchema :
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldSchema > fields_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::schema::FieldSchema > fields_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_;
bool auto_id_; bool autoid_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_schema_2eproto; friend struct ::TableStruct_schema_2eproto;
}; };
@ -750,18 +750,18 @@ inline void CollectionSchema::set_allocated_description(std::string* description
// @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.CollectionSchema.description) // @@protoc_insertion_point(field_set_allocated:milvus.proto.schema.CollectionSchema.description)
} }
// bool auto_id = 3; // bool autoID = 3;
inline void CollectionSchema::clear_auto_id() { inline void CollectionSchema::clear_autoid() {
auto_id_ = false; autoid_ = false;
} }
inline bool CollectionSchema::auto_id() const { inline bool CollectionSchema::autoid() const {
// @@protoc_insertion_point(field_get:milvus.proto.schema.CollectionSchema.auto_id) // @@protoc_insertion_point(field_get:milvus.proto.schema.CollectionSchema.autoID)
return auto_id_; return autoid_;
} }
inline void CollectionSchema::set_auto_id(bool value) { inline void CollectionSchema::set_autoid(bool value) {
auto_id_ = value; autoid_ = value;
// @@protoc_insertion_point(field_set:milvus.proto.schema.CollectionSchema.auto_id) // @@protoc_insertion_point(field_set:milvus.proto.schema.CollectionSchema.autoID)
} }
// repeated .milvus.proto.schema.FieldSchema fields = 4; // repeated .milvus.proto.schema.FieldSchema fields = 4;

View File

@ -532,7 +532,7 @@ const char descriptor_table_protodef_service_5fmsg_2eproto[] PROTOBUF_SECTION_VA
"us\0221\n\004name\030\002 \001(\0132#.milvus.proto.service." "us\0221\n\004name\030\002 \001(\0132#.milvus.proto.service."
"PartitionName\0225\n\nstatistics\030\003 \003(\0132!.milv" "PartitionName\0225\n\nstatistics\030\003 \003(\0132!.milv"
"us.proto.common.KeyValuePair\"$\n\005Score\022\013\n" "us.proto.common.KeyValuePair\"$\n\005Score\022\013\n"
"\003tag\030\001 \001(\t\022\016\n\006values\030\002 \003(\002\"m\n\004Hits\022\013\n\003id" "\003tag\030\001 \001(\t\022\016\n\006values\030\002 \003(\002\"m\n\004Hits\022\013\n\003ID"
"s\030\001 \003(\003\022+\n\010row_data\030\002 \003(\0132\031.milvus.proto" "s\030\001 \003(\003\022+\n\010row_data\030\002 \003(\0132\031.milvus.proto"
".common.Blob\022+\n\006scores\030\003 \003(\0132\033.milvus.pr" ".common.Blob\022+\n\006scores\030\003 \003(\0132\033.milvus.pr"
"oto.service.Score\"d\n\013QueryResult\022+\n\006stat" "oto.service.Score\"d\n\013QueryResult\022+\n\006stat"
@ -5598,7 +5598,7 @@ const char* Hits::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
CHK_(ptr); CHK_(ptr);
switch (tag >> 3) { switch (tag >> 3) {
// repeated int64 ids = 1; // repeated int64 IDs = 1;
case 1: case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_ids(), ptr, ctx); ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_ids(), ptr, ctx);
@ -5662,7 +5662,7 @@ bool Hits::MergePartialFromCodedStream(
tag = p.first; tag = p.first;
if (!p.second) goto handle_unusual; if (!p.second) goto handle_unusual;
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated int64 ids = 1; // repeated int64 IDs = 1;
case 1: { case 1: {
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive<
@ -5727,7 +5727,7 @@ void Hits::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// repeated int64 ids = 1; // repeated int64 IDs = 1;
if (this->ids_size() > 0) { if (this->ids_size() > 0) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_ids_cached_byte_size_.load( output->WriteVarint32(_ids_cached_byte_size_.load(
@ -5769,7 +5769,7 @@ void Hits::SerializeWithCachedSizes(
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// repeated int64 ids = 1; // repeated int64 IDs = 1;
if (this->ids_size() > 0) { if (this->ids_size() > 0) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray(
1, 1,
@ -5819,7 +5819,7 @@ size_t Hits::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
// repeated int64 ids = 1; // repeated int64 IDs = 1;
{ {
size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
Int64Size(this->ids_); Int64Size(this->ids_);

View File

@ -2422,11 +2422,11 @@ class Hits :
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
kIdsFieldNumber = 1, kIDsFieldNumber = 1,
kRowDataFieldNumber = 2, kRowDataFieldNumber = 2,
kScoresFieldNumber = 3, kScoresFieldNumber = 3,
}; };
// repeated int64 ids = 1; // repeated int64 IDs = 1;
int ids_size() const; int ids_size() const;
void clear_ids(); void clear_ids();
::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const; ::PROTOBUF_NAMESPACE_ID::int64 ids(int index) const;
@ -4109,7 +4109,7 @@ Score::mutable_values() {
// Hits // Hits
// repeated int64 ids = 1; // repeated int64 IDs = 1;
inline int Hits::ids_size() const { inline int Hits::ids_size() const {
return ids_.size(); return ids_.size();
} }
@ -4117,25 +4117,25 @@ inline void Hits::clear_ids() {
ids_.Clear(); ids_.Clear();
} }
inline ::PROTOBUF_NAMESPACE_ID::int64 Hits::ids(int index) const { inline ::PROTOBUF_NAMESPACE_ID::int64 Hits::ids(int index) const {
// @@protoc_insertion_point(field_get:milvus.proto.service.Hits.ids) // @@protoc_insertion_point(field_get:milvus.proto.service.Hits.IDs)
return ids_.Get(index); return ids_.Get(index);
} }
inline void Hits::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { inline void Hits::set_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) {
ids_.Set(index, value); ids_.Set(index, value);
// @@protoc_insertion_point(field_set:milvus.proto.service.Hits.ids) // @@protoc_insertion_point(field_set:milvus.proto.service.Hits.IDs)
} }
inline void Hits::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { inline void Hits::add_ids(::PROTOBUF_NAMESPACE_ID::int64 value) {
ids_.Add(value); ids_.Add(value);
// @@protoc_insertion_point(field_add:milvus.proto.service.Hits.ids) // @@protoc_insertion_point(field_add:milvus.proto.service.Hits.IDs)
} }
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >&
Hits::ids() const { Hits::ids() const {
// @@protoc_insertion_point(field_list:milvus.proto.service.Hits.ids) // @@protoc_insertion_point(field_list:milvus.proto.service.Hits.IDs)
return ids_; return ids_;
} }
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >*
Hits::mutable_ids() { Hits::mutable_ids() {
// @@protoc_insertion_point(field_mutable_list:milvus.proto.service.Hits.ids) // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.Hits.IDs)
return &ids_; return &ids_;
} }

View File

@ -50,10 +50,10 @@ func GrpcMarshal(c *Collection) *Collection {
} }
pbSchema.Fields = schemaSlice pbSchema.Fields = schemaSlice
grpcCollection := &etcdpb.CollectionMeta{ grpcCollection := &etcdpb.CollectionMeta{
Id: c.ID, ID: c.ID,
Schema: pbSchema, Schema: pbSchema,
CreateTime: c.CreateTime, CreateTime: c.CreateTime,
SegmentIds: c.SegmentIDs, SegmentIDs: c.SegmentIDs,
PartitionTags: c.PartitionTags, PartitionTags: c.PartitionTags,
} }
out := proto.MarshalTextString(grpcCollection) out := proto.MarshalTextString(grpcCollection)

View File

@ -84,11 +84,11 @@ func (t *createCollectionTask) Execute() error {
} }
collection := etcdpb.CollectionMeta{ collection := etcdpb.CollectionMeta{
Id: collectionID, ID: collectionID,
Schema: &schema, Schema: &schema,
CreateTime: ts, CreateTime: ts,
// TODO: initial segment? // TODO: initial segment?
SegmentIds: make([]UniqueID, 0), SegmentIDs: make([]UniqueID, 0),
// TODO: initial partition? // TODO: initial partition?
PartitionTags: make([]string, 0), PartitionTags: make([]string, 0),
} }
@ -123,7 +123,7 @@ func (t *dropCollectionTask) Execute() error {
return err return err
} }
collectionID := collectionMeta.Id collectionID := collectionMeta.ID
return t.mt.DeleteCollection(collectionID) return t.mt.DeleteCollection(collectionID)
} }

View File

@ -44,7 +44,7 @@ func TestMaster_CreateCollectionTask(t *testing.T) {
sch := schemapb.CollectionSchema{ sch := schemapb.CollectionSchema{
Name: "col1", Name: "col1",
Description: "test collection", Description: "test collection",
AutoId: false, AutoID: false,
Fields: []*schemapb.FieldSchema{ Fields: []*schemapb.FieldSchema{
{ {
Name: "col1_f1", Name: "col1_f1",
@ -103,9 +103,9 @@ func TestMaster_CreateCollectionTask(t *testing.T) {
req := internalpb.CreateCollectionRequest{ req := internalpb.CreateCollectionRequest{
MsgType: internalpb.MsgType_kCreateCollection, MsgType: internalpb.MsgType_kCreateCollection,
ReqId: 1, ReqID: 1,
Timestamp: 11, Timestamp: 11,
ProxyId: 1, ProxyID: 1,
Schema: &commonpb.Blob{Value: schemaBytes}, Schema: &commonpb.Blob{Value: schemaBytes},
} }
log.Printf("... [Create] collection col1\n") log.Printf("... [Create] collection col1\n")
@ -115,10 +115,10 @@ func TestMaster_CreateCollectionTask(t *testing.T) {
collMeta, err := svr.mt.GetCollectionByName(sch.Name) collMeta, err := svr.mt.GetCollectionByName(sch.Name)
assert.Nil(t, err) assert.Nil(t, err)
t.Logf("collection id = %d", collMeta.Id) t.Logf("collection id = %d", collMeta.ID)
assert.Equal(t, collMeta.CreateTime, uint64(11)) assert.Equal(t, collMeta.CreateTime, uint64(11))
assert.Equal(t, collMeta.Schema.Name, "col1") assert.Equal(t, collMeta.Schema.Name, "col1")
assert.Equal(t, collMeta.Schema.AutoId, false) assert.Equal(t, collMeta.Schema.AutoID, false)
assert.Equal(t, len(collMeta.Schema.Fields), 2) assert.Equal(t, len(collMeta.Schema.Fields), 2)
assert.Equal(t, collMeta.Schema.Fields[0].Name, "col1_f1") assert.Equal(t, collMeta.Schema.Fields[0].Name, "col1_f1")
assert.Equal(t, collMeta.Schema.Fields[1].Name, "col1_f2") assert.Equal(t, collMeta.Schema.Fields[1].Name, "col1_f2")
@ -157,9 +157,9 @@ func TestMaster_CreateCollectionTask(t *testing.T) {
reqDrop := internalpb.DropCollectionRequest{ reqDrop := internalpb.DropCollectionRequest{
MsgType: internalpb.MsgType_kDropCollection, MsgType: internalpb.MsgType_kDropCollection,
ReqId: 1, ReqID: 1,
Timestamp: 11, Timestamp: 11,
ProxyId: 1, ProxyID: 1,
CollectionName: &ser, CollectionName: &ser,
} }

View File

@ -23,7 +23,7 @@ func ComputeCloseTime(ss internalpb.SegmentStats, kvbase *kv.EtcdKV) error {
memRate = 1 memRate = 1
} }
sec := int(conf.Config.Master.SegmentThreshole*0.2) / memRate sec := int(conf.Config.Master.SegmentThreshole*0.2) / memRate
data, err := kvbase.Load("segment/" + strconv.Itoa(int(ss.SegmentId))) data, err := kvbase.Load("segment/" + strconv.Itoa(int(ss.SegmentID)))
if err != nil { if err != nil {
return err return err
} }
@ -37,7 +37,7 @@ func ComputeCloseTime(ss internalpb.SegmentStats, kvbase *kv.EtcdKV) error {
if err != nil { if err != nil {
return err return err
} }
kvbase.Save("segment/"+strconv.Itoa(int(ss.SegmentId)), updateData) kvbase.Save("segment/"+strconv.Itoa(int(ss.SegmentID)), updateData)
//create new segment //create new segment
newSegID, _ := id.AllocOne() newSegID, _ := id.AllocOne()
newSeg := segment.NewSegment(newSegID, seg.CollectionID, seg.CollectionName, "default", seg.ChannelStart, seg.ChannelEnd, currentTime, time.Unix(1<<36-1, 0)) newSeg := segment.NewSegment(newSegID, seg.CollectionID, seg.CollectionName, "default", seg.ChannelStart, seg.ChannelEnd, currentTime, time.Unix(1<<36-1, 0))

View File

@ -29,7 +29,7 @@ func TestComputeClosetTime(t *testing.T) {
var news internalpb.SegmentStats var news internalpb.SegmentStats
for i := 0; i < 10; i++ { for i := 0; i < 10; i++ {
news = internalpb.SegmentStats{ news = internalpb.SegmentStats{
SegmentId: UniqueID(6875940398055133887), SegmentID: UniqueID(6875940398055133887),
MemorySize: int64(i * 1000), MemorySize: int64(i * 1000),
} }
ComputeCloseTime(news, kvbase) ComputeCloseTime(news, kvbase)

View File

@ -347,19 +347,19 @@ func (s *Master) AllocTimestamp(ctx context.Context, request *internalpb.TsoRequ
return response, nil return response, nil
} }
func (s *Master) AllocId(ctx context.Context, request *internalpb.IdRequest) (*internalpb.IdResponse, error) { func (s *Master) AllocID(ctx context.Context, request *internalpb.IDRequest) (*internalpb.IDResponse, error) {
count := request.GetCount() count := request.GetCount()
ts, err := id.AllocOne() ts, err := id.AllocOne()
if err != nil { if err != nil {
return &internalpb.IdResponse{ return &internalpb.IDResponse{
Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR}, Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR},
}, err }, err
} }
response := &internalpb.IdResponse{ response := &internalpb.IDResponse{
Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR}, Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR},
Id: ts, ID: ts,
Count: count, Count: count,
} }

View File

@ -42,7 +42,7 @@ func TestMaster_CreateCollection(t *testing.T) {
sch := schemapb.CollectionSchema{ sch := schemapb.CollectionSchema{
Name: "col1", Name: "col1",
Description: "test collection", Description: "test collection",
AutoId: false, AutoID: false,
Fields: []*schemapb.FieldSchema{ Fields: []*schemapb.FieldSchema{
{ {
Name: "col1_f1", Name: "col1_f1",
@ -101,9 +101,9 @@ func TestMaster_CreateCollection(t *testing.T) {
req := internalpb.CreateCollectionRequest{ req := internalpb.CreateCollectionRequest{
MsgType: internalpb.MsgType_kCreateCollection, MsgType: internalpb.MsgType_kCreateCollection,
ReqId: 1, ReqID: 1,
Timestamp: 11, Timestamp: 11,
ProxyId: 1, ProxyID: 1,
Schema: &commonpb.Blob{Value: schemaBytes}, Schema: &commonpb.Blob{Value: schemaBytes},
} }
st, err := cli.CreateCollection(ctx, &req) st, err := cli.CreateCollection(ctx, &req)
@ -112,10 +112,10 @@ func TestMaster_CreateCollection(t *testing.T) {
collMeta, err := svr.mt.GetCollectionByName(sch.Name) collMeta, err := svr.mt.GetCollectionByName(sch.Name)
assert.Nil(t, err) assert.Nil(t, err)
t.Logf("collection id = %d", collMeta.Id) t.Logf("collection id = %d", collMeta.ID)
assert.Equal(t, collMeta.CreateTime, uint64(11)) assert.Equal(t, collMeta.CreateTime, uint64(11))
assert.Equal(t, collMeta.Schema.Name, "col1") assert.Equal(t, collMeta.Schema.Name, "col1")
assert.Equal(t, collMeta.Schema.AutoId, false) assert.Equal(t, collMeta.Schema.AutoID, false)
assert.Equal(t, len(collMeta.Schema.Fields), 2) assert.Equal(t, len(collMeta.Schema.Fields), 2)
assert.Equal(t, collMeta.Schema.Fields[0].Name, "col1_f1") assert.Equal(t, collMeta.Schema.Fields[0].Name, "col1_f1")
assert.Equal(t, collMeta.Schema.Fields[1].Name, "col1_f2") assert.Equal(t, collMeta.Schema.Fields[1].Name, "col1_f2")

View File

@ -252,7 +252,7 @@ func (s *Master) pulsarLoop() {
var m internalpb.SegmentStats var m internalpb.SegmentStats
proto.Unmarshal(msg.Payload(), &m) proto.Unmarshal(msg.Payload(), &m)
fmt.Printf("Received message msgId: %#v -- content: '%d'\n", fmt.Printf("Received message msgId: %#v -- content: '%d'\n",
msg.ID(), m.SegmentId) msg.ID(), m.SegmentID)
s.ssChan <- m s.ssChan <- m
consumer.Ack(msg) consumer.Ack(msg)
case <-ctx.Done(): case <-ctx.Done():

View File

@ -60,7 +60,7 @@ func (mt *metaTable) reloadFromKV() error {
if err != nil { if err != nil {
return err return err
} }
mt.tenantID2Meta[tenantMeta.Id] = tenantMeta mt.tenantID2Meta[tenantMeta.ID] = tenantMeta
} }
_, values, err = mt.client.LoadWithPrefix("proxy") _, values, err = mt.client.LoadWithPrefix("proxy")
@ -74,7 +74,7 @@ func (mt *metaTable) reloadFromKV() error {
if err != nil { if err != nil {
return err return err
} }
mt.proxyID2Meta[proxyMeta.Id] = proxyMeta mt.proxyID2Meta[proxyMeta.ID] = proxyMeta
} }
_, values, err = mt.client.LoadWithPrefix("collection") _, values, err = mt.client.LoadWithPrefix("collection")
@ -88,8 +88,8 @@ func (mt *metaTable) reloadFromKV() error {
if err != nil { if err != nil {
return err return err
} }
mt.collID2Meta[collectionMeta.Id] = collectionMeta mt.collID2Meta[collectionMeta.ID] = collectionMeta
mt.collName2ID[collectionMeta.Schema.Name] = collectionMeta.Id mt.collName2ID[collectionMeta.Schema.Name] = collectionMeta.ID
} }
_, values, err = mt.client.LoadWithPrefix("segment") _, values, err = mt.client.LoadWithPrefix("segment")
@ -103,7 +103,7 @@ func (mt *metaTable) reloadFromKV() error {
if err != nil { if err != nil {
return err return err
} }
mt.segID2Meta[segmentMeta.SegmentId] = segmentMeta mt.segID2Meta[segmentMeta.SegmentID] = segmentMeta
} }
return nil return nil
@ -115,9 +115,9 @@ func (mt *metaTable) saveCollectionMeta(coll *pb.CollectionMeta) error {
if err != nil { if err != nil {
return err return err
} }
mt.collID2Meta[coll.Id] = *coll mt.collID2Meta[coll.ID] = *coll
mt.collName2ID[coll.Schema.Name] = coll.Id mt.collName2ID[coll.Schema.Name] = coll.ID
return mt.client.Save("/collection/"+strconv.FormatInt(coll.Id, 10), string(collBytes)) return mt.client.Save("/collection/"+strconv.FormatInt(coll.ID, 10), string(collBytes))
} }
// mt.ddLock.Lock() before call this function // mt.ddLock.Lock() before call this function
@ -127,9 +127,9 @@ func (mt *metaTable) saveSegmentMeta(seg *pb.SegmentMeta) error {
return err return err
} }
mt.segID2Meta[seg.SegmentId] = *seg mt.segID2Meta[seg.SegmentID] = *seg
return mt.client.Save("/segment/"+strconv.FormatInt(seg.SegmentId, 10), string(segBytes)) return mt.client.Save("/segment/"+strconv.FormatInt(seg.SegmentID, 10), string(segBytes))
} }
// mt.ddLock.Lock() before call this function // mt.ddLock.Lock() before call this function
@ -156,7 +156,7 @@ func (mt *metaTable) saveCollectionAndDeleteSegmentsMeta(coll *pb.CollectionMeta
return err return err
} }
kvs["/collection/"+strconv.FormatInt(coll.Id, 10)] = string(collStrs) kvs["/collection/"+strconv.FormatInt(coll.ID, 10)] = string(collStrs)
for _, segID := range segIDs { for _, segID := range segIDs {
_, ok := mt.segID2Meta[segID] _, ok := mt.segID2Meta[segID]
@ -166,7 +166,7 @@ func (mt *metaTable) saveCollectionAndDeleteSegmentsMeta(coll *pb.CollectionMeta
} }
} }
mt.collID2Meta[coll.Id] = *coll mt.collID2Meta[coll.ID] = *coll
return mt.client.MultiSaveAndRemove(kvs, segIDStrs) return mt.client.MultiSaveAndRemove(kvs, segIDStrs)
} }
@ -178,18 +178,18 @@ func (mt *metaTable) saveCollectionsAndSegmentsMeta(coll *pb.CollectionMeta, seg
if err != nil { if err != nil {
return err return err
} }
kvs["/collection/"+strconv.FormatInt(coll.Id, 10)] = string(collBytes) kvs["/collection/"+strconv.FormatInt(coll.ID, 10)] = string(collBytes)
mt.collID2Meta[coll.Id] = *coll mt.collID2Meta[coll.ID] = *coll
mt.collName2ID[coll.Schema.Name] = coll.Id mt.collName2ID[coll.Schema.Name] = coll.ID
segBytes, err := proto.Marshal(seg) segBytes, err := proto.Marshal(seg)
if err != nil { if err != nil {
return err return err
} }
kvs["/segment/"+strconv.FormatInt(seg.SegmentId, 10)] = string(segBytes) kvs["/segment/"+strconv.FormatInt(seg.SegmentID, 10)] = string(segBytes)
mt.segID2Meta[seg.SegmentId] = *seg mt.segID2Meta[seg.SegmentID] = *seg
return mt.client.MultiSave(kvs) return mt.client.MultiSave(kvs)
} }
@ -230,7 +230,7 @@ func (mt *metaTable) deleteCollectionsAndSegmentsMeta(collID UniqueID, segIDs []
func (mt *metaTable) AddCollection(coll *pb.CollectionMeta) error { func (mt *metaTable) AddCollection(coll *pb.CollectionMeta) error {
mt.ddLock.Lock() mt.ddLock.Lock()
defer mt.ddLock.Unlock() defer mt.ddLock.Unlock()
if len(coll.SegmentIds) != 0 { if len(coll.SegmentIDs) != 0 {
return errors.Errorf("segment should be empty when creating collection") return errors.Errorf("segment should be empty when creating collection")
} }
if len(coll.PartitionTags) != 0 { if len(coll.PartitionTags) != 0 {
@ -257,7 +257,7 @@ func (mt *metaTable) DeleteCollection(collID UniqueID) error {
return errors.Errorf("can't find collection. id = " + strconv.FormatInt(collID, 10)) return errors.Errorf("can't find collection. id = " + strconv.FormatInt(collID, 10))
} }
err := mt.deleteCollectionsAndSegmentsMeta(collID, collMeta.SegmentIds) err := mt.deleteCollectionsAndSegmentsMeta(collID, collMeta.SegmentIDs)
if err != nil { if err != nil {
_ = mt.reloadFromKV() _ = mt.reloadFromKV()
return err return err
@ -344,9 +344,9 @@ func (mt *metaTable) DeletePartition(collID UniqueID, tag string) error {
return nil return nil
} }
toDeleteSeg := make([]UniqueID, 0, len(collMeta.SegmentIds)) toDeleteSeg := make([]UniqueID, 0, len(collMeta.SegmentIDs))
seg := make([]UniqueID, 0, len(collMeta.SegmentIds)) seg := make([]UniqueID, 0, len(collMeta.SegmentIDs))
for _, s := range collMeta.SegmentIds { for _, s := range collMeta.SegmentIDs {
sm, ok := mt.segID2Meta[s] sm, ok := mt.segID2Meta[s]
if !ok { if !ok {
return errors.Errorf("can't find segment id = %d", s) return errors.Errorf("can't find segment id = %d", s)
@ -358,7 +358,7 @@ func (mt *metaTable) DeletePartition(collID UniqueID, tag string) error {
} }
} }
collMeta.PartitionTags = pt collMeta.PartitionTags = pt
collMeta.SegmentIds = seg collMeta.SegmentIDs = seg
err := mt.saveCollectionAndDeleteSegmentsMeta(&collMeta, toDeleteSeg) err := mt.saveCollectionAndDeleteSegmentsMeta(&collMeta, toDeleteSeg)
if err != nil { if err != nil {
@ -371,9 +371,9 @@ func (mt *metaTable) DeletePartition(collID UniqueID, tag string) error {
func (mt *metaTable) AddSegment(seg *pb.SegmentMeta) error { func (mt *metaTable) AddSegment(seg *pb.SegmentMeta) error {
mt.ddLock.Lock() mt.ddLock.Lock()
defer mt.ddLock.Unlock() defer mt.ddLock.Unlock()
collID := seg.CollectionId collID := seg.CollectionID
collMeta := mt.collID2Meta[collID] collMeta := mt.collID2Meta[collID]
collMeta.SegmentIds = append(collMeta.SegmentIds, seg.SegmentId) collMeta.SegmentIDs = append(collMeta.SegmentIDs, seg.SegmentID)
err := mt.saveCollectionsAndSegmentsMeta(&collMeta, seg) err := mt.saveCollectionsAndSegmentsMeta(&collMeta, seg)
if err != nil { if err != nil {
_ = mt.reloadFromKV() _ = mt.reloadFromKV()
@ -402,14 +402,14 @@ func (mt *metaTable) DeleteSegment(segID UniqueID) error {
return errors.Errorf("can't find segment. id = " + strconv.FormatInt(segID, 10)) return errors.Errorf("can't find segment. id = " + strconv.FormatInt(segID, 10))
} }
collMeta, ok := mt.collID2Meta[segMeta.CollectionId] collMeta, ok := mt.collID2Meta[segMeta.CollectionID]
if !ok { if !ok {
return errors.Errorf("can't find collection. id = " + strconv.FormatInt(segMeta.CollectionId, 10)) return errors.Errorf("can't find collection. id = " + strconv.FormatInt(segMeta.CollectionID, 10))
} }
for i := 0; i < len(collMeta.SegmentIds); i++ { for i := 0; i < len(collMeta.SegmentIDs); i++ {
if collMeta.SegmentIds[i] == segID { if collMeta.SegmentIDs[i] == segID {
collMeta.SegmentIds = append(collMeta.SegmentIds[:i], collMeta.SegmentIds[i+1:]...) collMeta.SegmentIDs = append(collMeta.SegmentIDs[:i], collMeta.SegmentIDs[i+1:]...)
} }
} }

View File

@ -28,63 +28,63 @@ func TestMetaTable_Collection(t *testing.T) {
defer meta.client.Close() defer meta.client.Close()
colMeta := pb.CollectionMeta{ colMeta := pb.CollectionMeta{
Id: 100, ID: 100,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll1", Name: "coll1",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{}, SegmentIDs: []UniqueID{},
PartitionTags: []string{}, PartitionTags: []string{},
} }
colMeta2 := pb.CollectionMeta{ colMeta2 := pb.CollectionMeta{
Id: 50, ID: 50,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll1", Name: "coll1",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{}, SegmentIDs: []UniqueID{},
PartitionTags: []string{}, PartitionTags: []string{},
} }
colMeta3 := pb.CollectionMeta{ colMeta3 := pb.CollectionMeta{
Id: 30, ID: 30,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll2", Name: "coll2",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{}, SegmentIDs: []UniqueID{},
PartitionTags: []string{}, PartitionTags: []string{},
} }
colMeta4 := pb.CollectionMeta{ colMeta4 := pb.CollectionMeta{
Id: 30, ID: 30,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll2", Name: "coll2",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{1}, SegmentIDs: []UniqueID{1},
PartitionTags: []string{}, PartitionTags: []string{},
} }
colMeta5 := pb.CollectionMeta{ colMeta5 := pb.CollectionMeta{
Id: 30, ID: 30,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll2", Name: "coll2",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{1}, SegmentIDs: []UniqueID{1},
PartitionTags: []string{"1"}, PartitionTags: []string{"1"},
} }
segID1 := pb.SegmentMeta{ segID1 := pb.SegmentMeta{
SegmentId: 200, SegmentID: 200,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p1", PartitionTag: "p1",
} }
segID2 := pb.SegmentMeta{ segID2 := pb.SegmentMeta{
SegmentId: 300, SegmentID: 300,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p1", PartitionTag: "p1",
} }
segID3 := pb.SegmentMeta{ segID3 := pb.SegmentMeta{
SegmentId: 400, SegmentID: 400,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p2", PartitionTag: "p2",
} }
err = meta.AddCollection(&colMeta) err = meta.AddCollection(&colMeta)
@ -97,11 +97,11 @@ func TestMetaTable_Collection(t *testing.T) {
assert.NotNil(t, err) assert.NotNil(t, err)
err = meta.AddCollection(&colMeta5) err = meta.AddCollection(&colMeta5)
assert.NotNil(t, err) assert.NotNil(t, err)
hasCollection := meta.HasCollection(colMeta.Id) hasCollection := meta.HasCollection(colMeta.ID)
assert.True(t, hasCollection) assert.True(t, hasCollection)
err = meta.AddPartition(colMeta.Id, "p1") err = meta.AddPartition(colMeta.ID, "p1")
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddPartition(colMeta.Id, "p2") err = meta.AddPartition(colMeta.ID, "p2")
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddSegment(&segID1) err = meta.AddSegment(&segID1)
assert.Nil(t, err) assert.Nil(t, err)
@ -111,16 +111,16 @@ func TestMetaTable_Collection(t *testing.T) {
assert.Nil(t, err) assert.Nil(t, err)
getColMeta, err := meta.GetCollectionByName(colMeta.Schema.Name) getColMeta, err := meta.GetCollectionByName(colMeta.Schema.Name)
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, 3, len(getColMeta.SegmentIds)) assert.Equal(t, 3, len(getColMeta.SegmentIDs))
err = meta.DeleteCollection(colMeta.Id) err = meta.DeleteCollection(colMeta.ID)
assert.Nil(t, err) assert.Nil(t, err)
hasCollection = meta.HasCollection(colMeta.Id) hasCollection = meta.HasCollection(colMeta.ID)
assert.False(t, hasCollection) assert.False(t, hasCollection)
_, err = meta.GetSegmentByID(segID1.SegmentId) _, err = meta.GetSegmentByID(segID1.SegmentID)
assert.NotNil(t, err) assert.NotNil(t, err)
_, err = meta.GetSegmentByID(segID2.SegmentId) _, err = meta.GetSegmentByID(segID2.SegmentID)
assert.NotNil(t, err) assert.NotNil(t, err)
_, err = meta.GetSegmentByID(segID3.SegmentId) _, err = meta.GetSegmentByID(segID3.SegmentID)
assert.NotNil(t, err) assert.NotNil(t, err)
err = meta.reloadFromKV() err = meta.reloadFromKV()
@ -132,7 +132,7 @@ func TestMetaTable_Collection(t *testing.T) {
assert.Equal(t, 1, len(meta.collID2Meta)) assert.Equal(t, 1, len(meta.collID2Meta))
assert.Equal(t, 0, len(meta.segID2Meta)) assert.Equal(t, 0, len(meta.segID2Meta))
err = meta.DeleteCollection(colMeta3.Id) err = meta.DeleteCollection(colMeta3.ID)
assert.Nil(t, err) assert.Nil(t, err)
} }
@ -151,34 +151,34 @@ func TestMetaTable_DeletePartition(t *testing.T) {
defer meta.client.Close() defer meta.client.Close()
colMeta := pb.CollectionMeta{ colMeta := pb.CollectionMeta{
Id: 100, ID: 100,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll1", Name: "coll1",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{}, SegmentIDs: []UniqueID{},
PartitionTags: []string{}, PartitionTags: []string{},
} }
segID1 := pb.SegmentMeta{ segID1 := pb.SegmentMeta{
SegmentId: 200, SegmentID: 200,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p1", PartitionTag: "p1",
} }
segID2 := pb.SegmentMeta{ segID2 := pb.SegmentMeta{
SegmentId: 300, SegmentID: 300,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p1", PartitionTag: "p1",
} }
segID3 := pb.SegmentMeta{ segID3 := pb.SegmentMeta{
SegmentId: 400, SegmentID: 400,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p2", PartitionTag: "p2",
} }
err = meta.AddCollection(&colMeta) err = meta.AddCollection(&colMeta)
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddPartition(colMeta.Id, "p1") err = meta.AddPartition(colMeta.ID, "p1")
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddPartition(colMeta.Id, "p2") err = meta.AddPartition(colMeta.ID, "p2")
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddSegment(&segID1) err = meta.AddSegment(&segID1)
assert.Nil(t, err) assert.Nil(t, err)
@ -189,22 +189,22 @@ func TestMetaTable_DeletePartition(t *testing.T) {
afterCollMeta, err := meta.GetCollectionByName("coll1") afterCollMeta, err := meta.GetCollectionByName("coll1")
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, 2, len(afterCollMeta.PartitionTags)) assert.Equal(t, 2, len(afterCollMeta.PartitionTags))
assert.Equal(t, 3, len(afterCollMeta.SegmentIds)) assert.Equal(t, 3, len(afterCollMeta.SegmentIDs))
err = meta.DeletePartition(100, "p1") err = meta.DeletePartition(100, "p1")
assert.Nil(t, err) assert.Nil(t, err)
afterCollMeta, err = meta.GetCollectionByName("coll1") afterCollMeta, err = meta.GetCollectionByName("coll1")
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, 1, len(afterCollMeta.PartitionTags)) assert.Equal(t, 1, len(afterCollMeta.PartitionTags))
assert.Equal(t, 1, len(afterCollMeta.SegmentIds)) assert.Equal(t, 1, len(afterCollMeta.SegmentIDs))
hasPartition := meta.HasPartition(colMeta.Id, "p1") hasPartition := meta.HasPartition(colMeta.ID, "p1")
assert.False(t, hasPartition) assert.False(t, hasPartition)
hasPartition = meta.HasPartition(colMeta.Id, "p2") hasPartition = meta.HasPartition(colMeta.ID, "p2")
assert.True(t, hasPartition) assert.True(t, hasPartition)
_, err = meta.GetSegmentByID(segID1.SegmentId) _, err = meta.GetSegmentByID(segID1.SegmentID)
assert.NotNil(t, err) assert.NotNil(t, err)
_, err = meta.GetSegmentByID(segID2.SegmentId) _, err = meta.GetSegmentByID(segID2.SegmentID)
assert.NotNil(t, err) assert.NotNil(t, err)
_, err = meta.GetSegmentByID(segID3.SegmentId) _, err = meta.GetSegmentByID(segID3.SegmentID)
assert.Nil(t, err) assert.Nil(t, err)
afterCollMeta, err = meta.GetCollectionByName("coll1") afterCollMeta, err = meta.GetCollectionByName("coll1")
assert.Nil(t, err) assert.Nil(t, err)
@ -239,42 +239,42 @@ func TestMetaTable_Segment(t *testing.T) {
assert.Nil(t, err) assert.Nil(t, err)
colMeta := pb.CollectionMeta{ colMeta := pb.CollectionMeta{
Id: 100, ID: 100,
Schema: &schemapb.CollectionSchema{ Schema: &schemapb.CollectionSchema{
Name: "coll1", Name: "coll1",
}, },
CreateTime: 0, CreateTime: 0,
SegmentIds: []UniqueID{}, SegmentIDs: []UniqueID{},
PartitionTags: []string{}, PartitionTags: []string{},
} }
segMeta := pb.SegmentMeta{ segMeta := pb.SegmentMeta{
SegmentId: 200, SegmentID: 200,
CollectionId: 100, CollectionID: 100,
PartitionTag: "p1", PartitionTag: "p1",
} }
err = meta.AddCollection(&colMeta) err = meta.AddCollection(&colMeta)
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddPartition(colMeta.Id, "p1") err = meta.AddPartition(colMeta.ID, "p1")
assert.Nil(t, err) assert.Nil(t, err)
err = meta.AddSegment(&segMeta) err = meta.AddSegment(&segMeta)
assert.Nil(t, err) assert.Nil(t, err)
getSegMeta, err := meta.GetSegmentByID(segMeta.SegmentId) getSegMeta, err := meta.GetSegmentByID(segMeta.SegmentID)
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, &segMeta, getSegMeta) assert.Equal(t, &segMeta, getSegMeta)
err = meta.CloseSegment(segMeta.SegmentId, Timestamp(11), 111) err = meta.CloseSegment(segMeta.SegmentID, Timestamp(11), 111)
assert.Nil(t, err) assert.Nil(t, err)
getSegMeta, err = meta.GetSegmentByID(segMeta.SegmentId) getSegMeta, err = meta.GetSegmentByID(segMeta.SegmentID)
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, getSegMeta.NumRows, int64(111)) assert.Equal(t, getSegMeta.NumRows, int64(111))
assert.Equal(t, getSegMeta.CloseTime, uint64(11)) assert.Equal(t, getSegMeta.CloseTime, uint64(11))
err = meta.DeleteSegment(segMeta.SegmentId) err = meta.DeleteSegment(segMeta.SegmentID)
assert.Nil(t, err) assert.Nil(t, err)
getSegMeta, err = meta.GetSegmentByID(segMeta.SegmentId) getSegMeta, err = meta.GetSegmentByID(segMeta.SegmentID)
assert.Nil(t, getSegMeta) assert.Nil(t, getSegMeta)
assert.NotNil(t, err) assert.NotNil(t, err)
getColMeta, err := meta.GetCollectionByName(colMeta.Schema.Name) getColMeta, err := meta.GetCollectionByName(colMeta.Schema.Name)
assert.Nil(t, err) assert.Nil(t, err)
assert.Equal(t, 0, len(getColMeta.SegmentIds)) assert.Equal(t, 0, len(getColMeta.SegmentIDs))
meta.tenantID2Meta = make(map[UniqueID]pb.TenantMeta) meta.tenantID2Meta = make(map[UniqueID]pb.TenantMeta)
meta.proxyID2Meta = make(map[UniqueID]pb.ProxyMeta) meta.proxyID2Meta = make(map[UniqueID]pb.ProxyMeta)

View File

@ -90,19 +90,19 @@ func (s *Master) AllocTimestamp(ctx context.Context, request *internalpb.TsoRequ
return response, nil return response, nil
} }
func (s *Master) AllocId(ctx context.Context, request *internalpb.IdRequest) (*internalpb.IdResponse, error) { func (s *Master) AllocID(ctx context.Context, request *internalpb.IDRequest) (*internalpb.IDResponse, error) {
count := request.GetCount() count := request.GetCount()
ts, err := id.AllocOne() ts, err := id.AllocOne()
if err != nil { if err != nil {
return &internalpb.IdResponse{ return &internalpb.IDResponse{
Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR}, Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR},
}, err }, err
} }
response := &internalpb.IdResponse{ response := &internalpb.IDResponse{
Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR}, Status: &commonpb.Status{ErrorCode: commonpb.ErrorCode_UNEXPECTED_ERROR},
Id: ts, ID: ts,
Count: count, Count: count,
} }

View File

@ -76,7 +76,7 @@ func (t *createPartitionTask) Execute() error {
return err return err
} }
collectionID := collectionMeta.Id collectionID := collectionMeta.ID
err = (*t.kvBase).Save(partitionMetaPrefix+strconv.FormatInt(collectionID, 10), string(collectionJSON)) err = (*t.kvBase).Save(partitionMetaPrefix+strconv.FormatInt(collectionID, 10), string(collectionJSON))
if err != nil { if err != nil {
return err return err
@ -113,7 +113,7 @@ func (t *dropPartitionTask) Execute() error {
return err return err
} }
err = t.mt.DeletePartition(collectionMeta.Id, partitionName.Tag) err = t.mt.DeletePartition(collectionMeta.ID, partitionName.Tag)
if err != nil { if err != nil {
return err return err
} }
@ -123,7 +123,7 @@ func (t *dropPartitionTask) Execute() error {
return err return err
} }
collectionID := collectionMeta.Id collectionID := collectionMeta.ID
err = (*t.kvBase).Save(partitionMetaPrefix+strconv.FormatInt(collectionID, 10), string(collectionJSON)) err = (*t.kvBase).Save(partitionMetaPrefix+strconv.FormatInt(collectionID, 10), string(collectionJSON))
if err != nil { if err != nil {
return err return err
@ -160,7 +160,7 @@ func (t *hasPartitionTask) Execute() error {
return err return err
} }
t.hasPartition = t.mt.HasPartition(collectionMeta.Id, partitionName.Tag) t.hasPartition = t.mt.HasPartition(collectionMeta.ID, partitionName.Tag)
return nil return nil
} }

View File

@ -64,7 +64,7 @@ func (syncMsgProducer *timeSyncMsgProducer) broadcastMsg(barrier TimeTickBarrier
} }
timeTickResult := internalPb.TimeTickMsg{ timeTickResult := internalPb.TimeTickMsg{
MsgType: internalPb.MsgType_kTimeTick, MsgType: internalPb.MsgType_kTimeTick,
PeerId: 0, PeerID: 0,
Timestamp: timetick, Timestamp: timetick,
} }
timeTickMsg := &ms.TimeTickMsg{ timeTickMsg := &ms.TimeTickMsg{

View File

@ -72,16 +72,16 @@ func (ttBarrier *softTimeTickBarrier) Start() error {
if len(ttmsgs.Msgs) > 0 { if len(ttmsgs.Msgs) > 0 {
for _, timetickmsg := range ttmsgs.Msgs { for _, timetickmsg := range ttmsgs.Msgs {
ttmsg := (*timetickmsg).(*ms.TimeTickMsg) ttmsg := (*timetickmsg).(*ms.TimeTickMsg)
oldT, ok := ttBarrier.peer2LastTt[ttmsg.PeerId] oldT, ok := ttBarrier.peer2LastTt[ttmsg.PeerID]
log.Printf("[softTimeTickBarrier] peer(%d)=%d\n", ttmsg.PeerId, ttmsg.Timestamp) log.Printf("[softTimeTickBarrier] peer(%d)=%d\n", ttmsg.PeerID, ttmsg.Timestamp)
if !ok { if !ok {
log.Printf("[softTimeTickBarrier] Warning: peerID %d not exist\n", ttmsg.PeerId) log.Printf("[softTimeTickBarrier] Warning: peerID %d not exist\n", ttmsg.PeerID)
continue continue
} }
if ttmsg.Timestamp > oldT { if ttmsg.Timestamp > oldT {
ttBarrier.peer2LastTt[ttmsg.PeerId] = ttmsg.Timestamp ttBarrier.peer2LastTt[ttmsg.PeerID] = ttmsg.Timestamp
// get a legal Timestamp // get a legal Timestamp
ts := ttBarrier.minTimestamp() ts := ttBarrier.minTimestamp()
@ -189,20 +189,20 @@ func (ttBarrier *hardTimeTickBarrier) Start() error {
// Suppose ttmsg.Timestamp from stream is always larger than the previous one, // Suppose ttmsg.Timestamp from stream is always larger than the previous one,
// that `ttmsg.Timestamp > oldT` // that `ttmsg.Timestamp > oldT`
ttmsg := (*timetickmsg).(*ms.TimeTickMsg) ttmsg := (*timetickmsg).(*ms.TimeTickMsg)
log.Printf("[hardTimeTickBarrier] peer(%d)=%d\n", ttmsg.PeerId, ttmsg.Timestamp) log.Printf("[hardTimeTickBarrier] peer(%d)=%d\n", ttmsg.PeerID, ttmsg.Timestamp)
oldT, ok := ttBarrier.peer2Tt[ttmsg.PeerId] oldT, ok := ttBarrier.peer2Tt[ttmsg.PeerID]
if !ok { if !ok {
log.Printf("[hardTimeTickBarrier] Warning: peerID %d not exist\n", ttmsg.PeerId) log.Printf("[hardTimeTickBarrier] Warning: peerID %d not exist\n", ttmsg.PeerID)
continue continue
} }
if oldT > state { if oldT > state {
log.Printf("[hardTimeTickBarrier] Warning: peer(%d) timestamp(%d) ahead\n", log.Printf("[hardTimeTickBarrier] Warning: peer(%d) timestamp(%d) ahead\n",
ttmsg.PeerId, ttmsg.Timestamp) ttmsg.PeerID, ttmsg.Timestamp)
} }
ttBarrier.peer2Tt[ttmsg.PeerId] = ttmsg.Timestamp ttBarrier.peer2Tt[ttmsg.PeerID] = ttmsg.Timestamp
newState := ttBarrier.minTimestamp() newState := ttBarrier.minTimestamp()
if newState > state { if newState > state {

View File

@ -21,7 +21,7 @@ func getTtMsg(msgType internalPb.MsgType, peerID UniqueID, timeStamp uint64) *ms
} }
timeTickResult := internalPb.TimeTickMsg{ timeTickResult := internalPb.TimeTickMsg{
MsgType: internalPb.MsgType_kTimeTick, MsgType: internalPb.MsgType_kTimeTick,
PeerId: peerID, PeerID: peerID,
Timestamp: timeStamp, Timestamp: timeStamp,
} }
timeTickMsg := &ms.TimeTickMsg{ timeTickMsg := &ms.TimeTickMsg{

View File

@ -395,7 +395,7 @@ func insertRepackFunc(tsMsgs []*TsMsg, hashKeys [][]int32) (map[int32]*MsgPack,
keys := hashKeys[i] keys := hashKeys[i]
timestampLen := len(insertRequest.Timestamps) timestampLen := len(insertRequest.Timestamps)
rowIDLen := len(insertRequest.RowIds) rowIDLen := len(insertRequest.RowIDs)
rowDataLen := len(insertRequest.RowData) rowDataLen := len(insertRequest.RowData)
keysLen := len(keys) keysLen := len(keys)
@ -411,14 +411,14 @@ func insertRepackFunc(tsMsgs []*TsMsg, hashKeys [][]int32) (map[int32]*MsgPack,
sliceRequest := internalPb.InsertRequest{ sliceRequest := internalPb.InsertRequest{
MsgType: internalPb.MsgType_kInsert, MsgType: internalPb.MsgType_kInsert,
ReqId: insertRequest.ReqId, ReqID: insertRequest.ReqID,
CollectionName: insertRequest.CollectionName, CollectionName: insertRequest.CollectionName,
PartitionTag: insertRequest.PartitionTag, PartitionTag: insertRequest.PartitionTag,
SegmentId: insertRequest.SegmentId, SegmentID: insertRequest.SegmentID,
ChannelId: insertRequest.ChannelId, ChannelID: insertRequest.ChannelID,
ProxyId: insertRequest.ProxyId, ProxyID: insertRequest.ProxyID,
Timestamps: []uint64{insertRequest.Timestamps[index]}, Timestamps: []uint64{insertRequest.Timestamps[index]},
RowIds: []int64{insertRequest.RowIds[index]}, RowIDs: []int64{insertRequest.RowIDs[index]},
RowData: []*commonPb.Blob{insertRequest.RowData[index]}, RowData: []*commonPb.Blob{insertRequest.RowData[index]},
} }
@ -458,10 +458,10 @@ func deleteRepackFunc(tsMsgs []*TsMsg, hashKeys [][]int32) (map[int32]*MsgPack,
sliceRequest := internalPb.DeleteRequest{ sliceRequest := internalPb.DeleteRequest{
MsgType: internalPb.MsgType_kDelete, MsgType: internalPb.MsgType_kDelete,
ReqId: deleteRequest.ReqId, ReqID: deleteRequest.ReqID,
CollectionName: deleteRequest.CollectionName, CollectionName: deleteRequest.CollectionName,
ChannelId: deleteRequest.ChannelId, ChannelID: deleteRequest.ChannelID,
ProxyId: deleteRequest.ProxyId, ProxyID: deleteRequest.ProxyID,
Timestamps: []uint64{deleteRequest.Timestamps[index]}, Timestamps: []uint64{deleteRequest.Timestamps[index]},
PrimaryKeys: []int64{deleteRequest.PrimaryKeys[index]}, PrimaryKeys: []int64{deleteRequest.PrimaryKeys[index]},
} }

View File

@ -37,14 +37,14 @@ func getTsMsg(msgType MsgType, reqID UniqueID, hashValue int32) *TsMsg {
case internalPb.MsgType_kInsert: case internalPb.MsgType_kInsert:
insertRequest := internalPb.InsertRequest{ insertRequest := internalPb.InsertRequest{
MsgType: internalPb.MsgType_kInsert, MsgType: internalPb.MsgType_kInsert,
ReqId: reqID, ReqID: reqID,
CollectionName: "Collection", CollectionName: "Collection",
PartitionTag: "Partition", PartitionTag: "Partition",
SegmentId: 1, SegmentID: 1,
ChannelId: 1, ChannelID: 1,
ProxyId: 1, ProxyID: 1,
Timestamps: []Timestamp{1}, Timestamps: []Timestamp{1},
RowIds: []int64{1}, RowIDs: []int64{1},
RowData: []*commonPb.Blob{{}}, RowData: []*commonPb.Blob{{}},
} }
insertMsg := &InsertMsg{ insertMsg := &InsertMsg{
@ -55,10 +55,10 @@ func getTsMsg(msgType MsgType, reqID UniqueID, hashValue int32) *TsMsg {
case internalPb.MsgType_kDelete: case internalPb.MsgType_kDelete:
deleteRequest := internalPb.DeleteRequest{ deleteRequest := internalPb.DeleteRequest{
MsgType: internalPb.MsgType_kDelete, MsgType: internalPb.MsgType_kDelete,
ReqId: reqID, ReqID: reqID,
CollectionName: "Collection", CollectionName: "Collection",
ChannelId: 1, ChannelID: 1,
ProxyId: 1, ProxyID: 1,
Timestamps: []Timestamp{1}, Timestamps: []Timestamp{1},
PrimaryKeys: []IntPrimaryKey{1}, PrimaryKeys: []IntPrimaryKey{1},
} }
@ -70,10 +70,10 @@ func getTsMsg(msgType MsgType, reqID UniqueID, hashValue int32) *TsMsg {
case internalPb.MsgType_kSearch: case internalPb.MsgType_kSearch:
searchRequest := internalPb.SearchRequest{ searchRequest := internalPb.SearchRequest{
MsgType: internalPb.MsgType_kSearch, MsgType: internalPb.MsgType_kSearch,
ReqId: reqID, ReqID: reqID,
ProxyId: 1, ProxyID: 1,
Timestamp: 1, Timestamp: 1,
ResultChannelId: 1, ResultChannelID: 1,
} }
searchMsg := &SearchMsg{ searchMsg := &SearchMsg{
BaseMsg: baseMsg, BaseMsg: baseMsg,
@ -84,11 +84,11 @@ func getTsMsg(msgType MsgType, reqID UniqueID, hashValue int32) *TsMsg {
searchResult := internalPb.SearchResult{ searchResult := internalPb.SearchResult{
MsgType: internalPb.MsgType_kSearchResult, MsgType: internalPb.MsgType_kSearchResult,
Status: &commonPb.Status{ErrorCode: commonPb.ErrorCode_SUCCESS}, Status: &commonPb.Status{ErrorCode: commonPb.ErrorCode_SUCCESS},
ReqId: reqID, ReqID: reqID,
ProxyId: 1, ProxyID: 1,
QueryNodeId: 1, QueryNodeID: 1,
Timestamp: 1, Timestamp: 1,
ResultChannelId: 1, ResultChannelID: 1,
} }
searchResultMsg := &SearchResultMsg{ searchResultMsg := &SearchResultMsg{
BaseMsg: baseMsg, BaseMsg: baseMsg,
@ -98,7 +98,7 @@ func getTsMsg(msgType MsgType, reqID UniqueID, hashValue int32) *TsMsg {
case internalPb.MsgType_kTimeTick: case internalPb.MsgType_kTimeTick:
timeTickResult := internalPb.TimeTickMsg{ timeTickResult := internalPb.TimeTickMsg{
MsgType: internalPb.MsgType_kTimeTick, MsgType: internalPb.MsgType_kTimeTick,
PeerId: reqID, PeerID: reqID,
Timestamp: 1, Timestamp: 1,
} }
timeTickMsg := &TimeTickMsg{ timeTickMsg := &TimeTickMsg{
@ -119,7 +119,7 @@ func getTimeTickMsg(reqID UniqueID, hashValue int32, time uint64) *TsMsg {
} }
timeTickResult := internalPb.TimeTickMsg{ timeTickResult := internalPb.TimeTickMsg{
MsgType: internalPb.MsgType_kTimeTick, MsgType: internalPb.MsgType_kTimeTick,
PeerId: reqID, PeerID: reqID,
Timestamp: time, Timestamp: time,
} }
timeTickMsg := &TimeTickMsg{ timeTickMsg := &TimeTickMsg{
@ -357,14 +357,14 @@ func TestStream_PulsarMsgStream_InsertRepackFunc(t *testing.T) {
insertRequest := internalPb.InsertRequest{ insertRequest := internalPb.InsertRequest{
MsgType: internalPb.MsgType_kInsert, MsgType: internalPb.MsgType_kInsert,
ReqId: 1, ReqID: 1,
CollectionName: "Collection", CollectionName: "Collection",
PartitionTag: "Partition", PartitionTag: "Partition",
SegmentId: 1, SegmentID: 1,
ChannelId: 1, ChannelID: 1,
ProxyId: 1, ProxyID: 1,
Timestamps: []Timestamp{1, 1}, Timestamps: []Timestamp{1, 1},
RowIds: []int64{1, 3}, RowIDs: []int64{1, 3},
RowData: []*commonPb.Blob{{}, {}}, RowData: []*commonPb.Blob{{}, {}},
} }
insertMsg := &InsertMsg{ insertMsg := &InsertMsg{
@ -410,10 +410,10 @@ func TestStream_PulsarMsgStream_DeleteRepackFunc(t *testing.T) {
deleteRequest := internalPb.DeleteRequest{ deleteRequest := internalPb.DeleteRequest{
MsgType: internalPb.MsgType_kDelete, MsgType: internalPb.MsgType_kDelete,
ReqId: 1, ReqID: 1,
CollectionName: "Collection", CollectionName: "Collection",
ChannelId: 1, ChannelID: 1,
ProxyId: 1, ProxyID: 1,
Timestamps: []Timestamp{1, 1}, Timestamps: []Timestamp{1, 1},
PrimaryKeys: []int64{1, 3}, PrimaryKeys: []int64{1, 3},
} }
@ -460,7 +460,7 @@ func TestStream_PulsarMsgStream_DefaultRepackFunc(t *testing.T) {
timeTickRequest := internalPb.TimeTickMsg{ timeTickRequest := internalPb.TimeTickMsg{
MsgType: internalPb.MsgType_kTimeTick, MsgType: internalPb.MsgType_kTimeTick,
PeerId: int64(1), PeerID: int64(1),
Timestamp: uint64(1), Timestamp: uint64(1),
} }
timeTick := &TimeTickMsg{ timeTick := &TimeTickMsg{

View File

@ -51,7 +51,7 @@ func newRepackFunc(tsMsgs []*TsMsg, hashKeys [][]int32) (map[int32]*MsgPack, err
keys := hashKeys[i] keys := hashKeys[i]
timestampLen := len(insertRequest.Timestamps) timestampLen := len(insertRequest.Timestamps)
rowIDLen := len(insertRequest.RowIds) rowIDLen := len(insertRequest.RowIDs)
rowDataLen := len(insertRequest.RowData) rowDataLen := len(insertRequest.RowData)
keysLen := len(keys) keysLen := len(keys)
@ -67,14 +67,14 @@ func newRepackFunc(tsMsgs []*TsMsg, hashKeys [][]int32) (map[int32]*MsgPack, err
sliceRequest := internalPb.InsertRequest{ sliceRequest := internalPb.InsertRequest{
MsgType: internalPb.MsgType_kInsert, MsgType: internalPb.MsgType_kInsert,
ReqId: insertRequest.ReqId, ReqID: insertRequest.ReqID,
CollectionName: insertRequest.CollectionName, CollectionName: insertRequest.CollectionName,
PartitionTag: insertRequest.PartitionTag, PartitionTag: insertRequest.PartitionTag,
SegmentId: insertRequest.SegmentId, SegmentID: insertRequest.SegmentID,
ChannelId: insertRequest.ChannelId, ChannelID: insertRequest.ChannelID,
ProxyId: insertRequest.ProxyId, ProxyID: insertRequest.ProxyID,
Timestamps: []uint64{insertRequest.Timestamps[index]}, Timestamps: []uint64{insertRequest.Timestamps[index]},
RowIds: []int64{insertRequest.RowIds[index]}, RowIDs: []int64{insertRequest.RowIDs[index]},
RowData: []*commonPb.Blob{insertRequest.RowData[index]}, RowData: []*commonPb.Blob{insertRequest.RowData[index]},
} }
@ -97,14 +97,14 @@ func getMsg(reqID UniqueID, hashValue int32) *TsMsg {
} }
insertRequest := internalPb.InsertRequest{ insertRequest := internalPb.InsertRequest{
MsgType: internalPb.MsgType_kInsert, MsgType: internalPb.MsgType_kInsert,
ReqId: reqID, ReqID: reqID,
CollectionName: "Collection", CollectionName: "Collection",
PartitionTag: "Partition", PartitionTag: "Partition",
SegmentId: 1, SegmentID: 1,
ChannelId: 1, ChannelID: 1,
ProxyId: 1, ProxyID: 1,
Timestamps: []Timestamp{1}, Timestamps: []Timestamp{1},
RowIds: []int64{1}, RowIDs: []int64{1},
RowData: []*commonPb.Blob{{}}, RowData: []*commonPb.Blob{{}},
} }
insertMsg := InsertMsg{ insertMsg := InsertMsg{

View File

@ -6,32 +6,32 @@ import "common.proto";
import "schema.proto"; import "schema.proto";
message TenantMeta { message TenantMeta {
int64 id = 1; int64 ID = 1;
int64 num_query_nodes = 2; int64 num_query_nodes = 2;
repeated string insert_channel_ids = 3; repeated string insert_channelIDs = 3;
string query_channel_id = 4; string query_channelID = 4;
} }
message ProxyMeta { message ProxyMeta {
int64 id = 1; int64 ID = 1;
common.Address address = 2; common.Address address = 2;
repeated string result_channel_ids = 3; repeated string result_channelIDs = 3;
} }
message CollectionMeta { message CollectionMeta {
int64 id=1; int64 ID=1;
schema.CollectionSchema schema=2; schema.CollectionSchema schema=2;
uint64 create_time=3; uint64 create_time=3;
repeated int64 segment_ids=4; repeated int64 segmentIDs=4;
repeated string partition_tags=5; repeated string partition_tags=5;
} }
message SegmentMeta { message SegmentMeta {
int64 segment_id=1; int64 segmentID=1;
int64 collection_id =2; int64 collectionID =2;
string partition_tag=3; string partition_tag=3;
int32 channel_start=4; int32 channel_start=4;
int32 channel_end=5; int32 channel_end=5;

View File

@ -23,10 +23,10 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type TenantMeta struct { type TenantMeta struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
NumQueryNodes int64 `protobuf:"varint,2,opt,name=num_query_nodes,json=numQueryNodes,proto3" json:"num_query_nodes,omitempty"` NumQueryNodes int64 `protobuf:"varint,2,opt,name=num_query_nodes,json=numQueryNodes,proto3" json:"num_query_nodes,omitempty"`
InsertChannelIds []string `protobuf:"bytes,3,rep,name=insert_channel_ids,json=insertChannelIds,proto3" json:"insert_channel_ids,omitempty"` InsertChannelIDs []string `protobuf:"bytes,3,rep,name=insert_channelIDs,json=insertChannelIDs,proto3" json:"insert_channelIDs,omitempty"`
QueryChannelId string `protobuf:"bytes,4,opt,name=query_channel_id,json=queryChannelId,proto3" json:"query_channel_id,omitempty"` QueryChannelID string `protobuf:"bytes,4,opt,name=query_channelID,json=queryChannelID,proto3" json:"query_channelID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -57,9 +57,9 @@ func (m *TenantMeta) XXX_DiscardUnknown() {
var xxx_messageInfo_TenantMeta proto.InternalMessageInfo var xxx_messageInfo_TenantMeta proto.InternalMessageInfo
func (m *TenantMeta) GetId() int64 { func (m *TenantMeta) GetID() int64 {
if m != nil { if m != nil {
return m.Id return m.ID
} }
return 0 return 0
} }
@ -71,24 +71,24 @@ func (m *TenantMeta) GetNumQueryNodes() int64 {
return 0 return 0
} }
func (m *TenantMeta) GetInsertChannelIds() []string { func (m *TenantMeta) GetInsertChannelIDs() []string {
if m != nil { if m != nil {
return m.InsertChannelIds return m.InsertChannelIDs
} }
return nil return nil
} }
func (m *TenantMeta) GetQueryChannelId() string { func (m *TenantMeta) GetQueryChannelID() string {
if m != nil { if m != nil {
return m.QueryChannelId return m.QueryChannelID
} }
return "" return ""
} }
type ProxyMeta struct { type ProxyMeta struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
Address *commonpb.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Address *commonpb.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
ResultChannelIds []string `protobuf:"bytes,3,rep,name=result_channel_ids,json=resultChannelIds,proto3" json:"result_channel_ids,omitempty"` ResultChannelIDs []string `protobuf:"bytes,3,rep,name=result_channelIDs,json=resultChannelIDs,proto3" json:"result_channelIDs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -119,9 +119,9 @@ func (m *ProxyMeta) XXX_DiscardUnknown() {
var xxx_messageInfo_ProxyMeta proto.InternalMessageInfo var xxx_messageInfo_ProxyMeta proto.InternalMessageInfo
func (m *ProxyMeta) GetId() int64 { func (m *ProxyMeta) GetID() int64 {
if m != nil { if m != nil {
return m.Id return m.ID
} }
return 0 return 0
} }
@ -133,18 +133,18 @@ func (m *ProxyMeta) GetAddress() *commonpb.Address {
return nil return nil
} }
func (m *ProxyMeta) GetResultChannelIds() []string { func (m *ProxyMeta) GetResultChannelIDs() []string {
if m != nil { if m != nil {
return m.ResultChannelIds return m.ResultChannelIDs
} }
return nil return nil
} }
type CollectionMeta struct { type CollectionMeta struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
Schema *schemapb.CollectionSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` Schema *schemapb.CollectionSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
CreateTime uint64 `protobuf:"varint,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` CreateTime uint64 `protobuf:"varint,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
SegmentIds []int64 `protobuf:"varint,4,rep,packed,name=segment_ids,json=segmentIds,proto3" json:"segment_ids,omitempty"` SegmentIDs []int64 `protobuf:"varint,4,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"`
PartitionTags []string `protobuf:"bytes,5,rep,name=partition_tags,json=partitionTags,proto3" json:"partition_tags,omitempty"` PartitionTags []string `protobuf:"bytes,5,rep,name=partition_tags,json=partitionTags,proto3" json:"partition_tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -176,9 +176,9 @@ func (m *CollectionMeta) XXX_DiscardUnknown() {
var xxx_messageInfo_CollectionMeta proto.InternalMessageInfo var xxx_messageInfo_CollectionMeta proto.InternalMessageInfo
func (m *CollectionMeta) GetId() int64 { func (m *CollectionMeta) GetID() int64 {
if m != nil { if m != nil {
return m.Id return m.ID
} }
return 0 return 0
} }
@ -197,9 +197,9 @@ func (m *CollectionMeta) GetCreateTime() uint64 {
return 0 return 0
} }
func (m *CollectionMeta) GetSegmentIds() []int64 { func (m *CollectionMeta) GetSegmentIDs() []int64 {
if m != nil { if m != nil {
return m.SegmentIds return m.SegmentIDs
} }
return nil return nil
} }
@ -212,8 +212,8 @@ func (m *CollectionMeta) GetPartitionTags() []string {
} }
type SegmentMeta struct { type SegmentMeta struct {
SegmentId int64 `protobuf:"varint,1,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"`
CollectionId int64 `protobuf:"varint,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"`
ChannelStart int32 `protobuf:"varint,4,opt,name=channel_start,json=channelStart,proto3" json:"channel_start,omitempty"` ChannelStart int32 `protobuf:"varint,4,opt,name=channel_start,json=channelStart,proto3" json:"channel_start,omitempty"`
ChannelEnd int32 `protobuf:"varint,5,opt,name=channel_end,json=channelEnd,proto3" json:"channel_end,omitempty"` ChannelEnd int32 `protobuf:"varint,5,opt,name=channel_end,json=channelEnd,proto3" json:"channel_end,omitempty"`
@ -250,16 +250,16 @@ func (m *SegmentMeta) XXX_DiscardUnknown() {
var xxx_messageInfo_SegmentMeta proto.InternalMessageInfo var xxx_messageInfo_SegmentMeta proto.InternalMessageInfo
func (m *SegmentMeta) GetSegmentId() int64 { func (m *SegmentMeta) GetSegmentID() int64 {
if m != nil { if m != nil {
return m.SegmentId return m.SegmentID
} }
return 0 return 0
} }
func (m *SegmentMeta) GetCollectionId() int64 { func (m *SegmentMeta) GetCollectionID() int64 {
if m != nil { if m != nil {
return m.CollectionId return m.CollectionID
} }
return 0 return 0
} }
@ -316,37 +316,37 @@ func init() {
func init() { proto.RegisterFile("etcd_meta.proto", fileDescriptor_975d306d62b73e88) } func init() { proto.RegisterFile("etcd_meta.proto", fileDescriptor_975d306d62b73e88) }
var fileDescriptor_975d306d62b73e88 = []byte{ var fileDescriptor_975d306d62b73e88 = []byte{
// 505 bytes of a gzipped FileDescriptorProto // 506 bytes of a gzipped FileDescri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0x2c, 0xe9, 0xad, 0xc6, 0x7c, 0x37, 0x77,
0x89, 0xcf, 0x28, 0xd3, 0x46, 0xb1, 0x4d, 0x63, 0x90, 0x2e, 0x99, 0x30, 0xa8, 0x04, 0xa9, 0x97, 0x1b, 0x7c, 0x51, 0x50, 0xa5, 0x25, 0xdd, 0x54, 0x1a, 0x8b, 0x39, 0xe5, 0x1a, 0x25, 0x27, 0xe5,
0x6e, 0xb3, 0x4b, 0xfb, 0x7f, 0xed, 0x37, 0x9b, 0xbe, 0xfb, 0x7a, 0xf1, 0x37, 0x00, 0x00, 0xff, 0xdc, 0xae, 0x75, 0x6e, 0xfe, 0xac, 0xfd, 0x66, 0xd3, 0xb6, 0x5f, 0xaf, 0xfe, 0x05, 0x00, 0x00,
0xff, 0xfe, 0x37, 0xae, 0xbe, 0x8e, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc2, 0xde, 0x28, 0x4b, 0x88, 0x03, 0x00, 0x00,
} }

View File

@ -47,20 +47,20 @@ enum PeerRole {
} }
message IdRequest { message IDRequest {
int64 peer_id = 1; int64 peerID = 1;
PeerRole role = 2; PeerRole role = 2;
uint32 count = 3; uint32 count = 3;
} }
message IdResponse { message IDResponse {
common.Status status = 1; common.Status status = 1;
int64 id = 2; int64 ID = 2;
uint32 count = 3; uint32 count = 3;
} }
message TsoRequest { message TsoRequest {
int64 peer_id = 1; int64 peerID = 1;
PeerRole role = 2; PeerRole role = 2;
uint32 count = 3; uint32 count = 3;
} }
@ -74,113 +74,113 @@ message TsoResponse {
message CreateCollectionRequest { message CreateCollectionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
common.Blob schema = 5; common.Blob schema = 5;
} }
message DropCollectionRequest { message DropCollectionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.CollectionName collection_name = 5; service.CollectionName collection_name = 5;
} }
message HasCollectionRequest { message HasCollectionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.CollectionName collection_name = 5; service.CollectionName collection_name = 5;
} }
message DescribeCollectionRequest { message DescribeCollectionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.CollectionName collection_name = 5; service.CollectionName collection_name = 5;
} }
message ShowCollectionRequest { message ShowCollectionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
} }
message CreatePartitionRequest { message CreatePartitionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.PartitionName partition_name = 5; service.PartitionName partition_name = 5;
} }
message DropPartitionRequest { message DropPartitionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.PartitionName partition_name = 5; service.PartitionName partition_name = 5;
} }
message HasPartitionRequest { message HasPartitionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.PartitionName partition_name = 5; service.PartitionName partition_name = 5;
} }
message DescribePartitionRequest { message DescribePartitionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.PartitionName partition_name = 5; service.PartitionName partition_name = 5;
} }
message ShowPartitionRequest { message ShowPartitionRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
int64 proxy_id = 4; int64 proxyID = 4;
service.CollectionName collection_name = 5; service.CollectionName collection_name = 5;
} }
message InsertRequest { message InsertRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
string collection_name = 3; string collection_name = 3;
string partition_tag = 4; string partition_tag = 4;
int64 segment_id = 5; int64 segmentID = 5;
int64 channel_id = 6; int64 channelID = 6;
int64 proxy_id = 7; int64 proxyID = 7;
repeated uint64 timestamps = 8; repeated uint64 timestamps = 8;
repeated int64 row_ids = 9; repeated int64 rowIDs = 9;
repeated common.Blob row_data = 10; repeated common.Blob row_data = 10;
} }
message DeleteRequest { message DeleteRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
string collection_name = 3; string collection_name = 3;
int64 channel_id = 4; int64 channelID = 4;
int64 proxy_id = 5; int64 proxyID = 5;
repeated uint64 timestamps = 6; repeated uint64 timestamps = 6;
repeated int64 primary_keys = 7; repeated int64 primary_keys = 7;
} }
@ -188,10 +188,10 @@ message DeleteRequest {
message SearchRequest { message SearchRequest {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 req_id = 2; int64 reqID = 2;
int64 proxy_id = 3; int64 proxyID = 3;
uint64 timestamp = 4; uint64 timestamp = 4;
int64 result_channel_id = 5; int64 result_channelID = 5;
common.Blob query = 6; common.Blob query = 6;
} }
@ -199,37 +199,37 @@ message SearchRequest {
message SearchResult { message SearchResult {
MsgType msg_type = 1; MsgType msg_type = 1;
common.Status status = 2; common.Status status = 2;
int64 req_id = 3; int64 reqID = 3;
int64 proxy_id = 4; int64 proxyID = 4;
int64 query_node_id = 5; int64 query_nodeID = 5;
uint64 timestamp = 6; uint64 timestamp = 6;
int64 result_channel_id = 7; int64 result_channelID = 7;
repeated service.Hits hits = 8; repeated service.Hits hits = 8;
} }
message TimeTickMsg { message TimeTickMsg {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 peer_id = 2; int64 peerID = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
} }
message Key2Seg { message Key2Seg {
int64 row_id = 1; int64 rowID = 1;
int64 primary_key = 2; int64 primary_key = 2;
uint64 timestamp = 3; uint64 timestamp = 3;
bool is_valid = 4; bool is_valid = 4;
repeated int64 segment_ids = 5; repeated int64 segmentIDs = 5;
} }
message Key2SegMsg { message Key2SegMsg {
int64 req_id = 1; int64 reqID = 1;
repeated Key2Seg key2seg = 2; repeated Key2Seg key2seg = 2;
} }
message SegmentStats { message SegmentStats {
int64 segment_id = 1; int64 segmentID = 1;
int64 memory_size = 2; int64 memory_size = 2;
int64 num_rows = 3; int64 num_rows = 3;
bool recently_modified = 4; bool recently_modified = 4;
@ -237,6 +237,6 @@ message SegmentStats {
message QueryNodeSegStats { message QueryNodeSegStats {
MsgType msg_type = 1; MsgType msg_type = 1;
int64 peer_id = 2; int64 peerID = 2;
repeated SegmentStats seg_stats = 3; repeated SegmentStats seg_stats = 3;
} }

View File

@ -128,8 +128,8 @@ func (PeerRole) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7eb37f6b80b23116, []int{1} return fileDescriptor_7eb37f6b80b23116, []int{1}
} }
type IdRequest struct { type IDRequest struct {
PeerId int64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` PeerID int64 `protobuf:"varint,1,opt,name=peerID,proto3" json:"peerID,omitempty"`
Role PeerRole `protobuf:"varint,2,opt,name=role,proto3,enum=milvus.proto.internal.PeerRole" json:"role,omitempty"` Role PeerRole `protobuf:"varint,2,opt,name=role,proto3,enum=milvus.proto.internal.PeerRole" json:"role,omitempty"`
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -137,101 +137,101 @@ type IdRequest struct {
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *IdRequest) Reset() { *m = IdRequest{} } func (m *IDRequest) Reset() { *m = IDRequest{} }
func (m *IdRequest) String() string { return proto.CompactTextString(m) } func (m *IDRequest) String() string { return proto.CompactTextString(m) }
func (*IdRequest) ProtoMessage() {} func (*IDRequest) ProtoMessage() {}
func (*IdRequest) Descriptor() ([]byte, []int) { func (*IDRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_7eb37f6b80b23116, []int{0} return fileDescriptor_7eb37f6b80b23116, []int{0}
} }
func (m *IdRequest) XXX_Unmarshal(b []byte) error { func (m *IDRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdRequest.Unmarshal(m, b) return xxx_messageInfo_IDRequest.Unmarshal(m, b)
} }
func (m *IdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdRequest.Marshal(b, m, deterministic) return xxx_messageInfo_IDRequest.Marshal(b, m, deterministic)
} }
func (m *IdRequest) XXX_Merge(src proto.Message) { func (m *IDRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdRequest.Merge(m, src) xxx_messageInfo_IDRequest.Merge(m, src)
} }
func (m *IdRequest) XXX_Size() int { func (m *IDRequest) XXX_Size() int {
return xxx_messageInfo_IdRequest.Size(m) return xxx_messageInfo_IDRequest.Size(m)
} }
func (m *IdRequest) XXX_DiscardUnknown() { func (m *IDRequest) XXX_DiscardUnknown() {
xxx_messageInfo_IdRequest.DiscardUnknown(m) xxx_messageInfo_IDRequest.DiscardUnknown(m)
} }
var xxx_messageInfo_IdRequest proto.InternalMessageInfo var xxx_messageInfo_IDRequest proto.InternalMessageInfo
func (m *IdRequest) GetPeerId() int64 { func (m *IDRequest) GetPeerID() int64 {
if m != nil { if m != nil {
return m.PeerId return m.PeerID
} }
return 0 return 0
} }
func (m *IdRequest) GetRole() PeerRole { func (m *IDRequest) GetRole() PeerRole {
if m != nil { if m != nil {
return m.Role return m.Role
} }
return PeerRole_Master return PeerRole_Master
} }
func (m *IdRequest) GetCount() uint32 { func (m *IDRequest) GetCount() uint32 {
if m != nil { if m != nil {
return m.Count return m.Count
} }
return 0 return 0
} }
type IdResponse struct { type IDResponse struct {
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *IdResponse) Reset() { *m = IdResponse{} } func (m *IDResponse) Reset() { *m = IDResponse{} }
func (m *IdResponse) String() string { return proto.CompactTextString(m) } func (m *IDResponse) String() string { return proto.CompactTextString(m) }
func (*IdResponse) ProtoMessage() {} func (*IDResponse) ProtoMessage() {}
func (*IdResponse) Descriptor() ([]byte, []int) { func (*IDResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_7eb37f6b80b23116, []int{1} return fileDescriptor_7eb37f6b80b23116, []int{1}
} }
func (m *IdResponse) XXX_Unmarshal(b []byte) error { func (m *IDResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdResponse.Unmarshal(m, b) return xxx_messageInfo_IDResponse.Unmarshal(m, b)
} }
func (m *IdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdResponse.Marshal(b, m, deterministic) return xxx_messageInfo_IDResponse.Marshal(b, m, deterministic)
} }
func (m *IdResponse) XXX_Merge(src proto.Message) { func (m *IDResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdResponse.Merge(m, src) xxx_messageInfo_IDResponse.Merge(m, src)
} }
func (m *IdResponse) XXX_Size() int { func (m *IDResponse) XXX_Size() int {
return xxx_messageInfo_IdResponse.Size(m) return xxx_messageInfo_IDResponse.Size(m)
} }
func (m *IdResponse) XXX_DiscardUnknown() { func (m *IDResponse) XXX_DiscardUnknown() {
xxx_messageInfo_IdResponse.DiscardUnknown(m) xxx_messageInfo_IDResponse.DiscardUnknown(m)
} }
var xxx_messageInfo_IdResponse proto.InternalMessageInfo var xxx_messageInfo_IDResponse proto.InternalMessageInfo
func (m *IdResponse) GetStatus() *commonpb.Status { func (m *IDResponse) GetStatus() *commonpb.Status {
if m != nil { if m != nil {
return m.Status return m.Status
} }
return nil return nil
} }
func (m *IdResponse) GetId() int64 { func (m *IDResponse) GetID() int64 {
if m != nil { if m != nil {
return m.Id return m.ID
} }
return 0 return 0
} }
func (m *IdResponse) GetCount() uint32 { func (m *IDResponse) GetCount() uint32 {
if m != nil { if m != nil {
return m.Count return m.Count
} }
@ -239,7 +239,7 @@ func (m *IdResponse) GetCount() uint32 {
} }
type TsoRequest struct { type TsoRequest struct {
PeerId int64 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` PeerID int64 `protobuf:"varint,1,opt,name=peerID,proto3" json:"peerID,omitempty"`
Role PeerRole `protobuf:"varint,2,opt,name=role,proto3,enum=milvus.proto.internal.PeerRole" json:"role,omitempty"` Role PeerRole `protobuf:"varint,2,opt,name=role,proto3,enum=milvus.proto.internal.PeerRole" json:"role,omitempty"`
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -272,9 +272,9 @@ func (m *TsoRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_TsoRequest proto.InternalMessageInfo var xxx_messageInfo_TsoRequest proto.InternalMessageInfo
func (m *TsoRequest) GetPeerId() int64 { func (m *TsoRequest) GetPeerID() int64 {
if m != nil { if m != nil {
return m.PeerId return m.PeerID
} }
return 0 return 0
} }
@ -350,9 +350,9 @@ func (m *TsoResponse) GetCount() uint32 {
type CreateCollectionRequest struct { type CreateCollectionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
Schema *commonpb.Blob `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"` Schema *commonpb.Blob `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -391,9 +391,9 @@ func (m *CreateCollectionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *CreateCollectionRequest) GetReqId() int64 { func (m *CreateCollectionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -405,9 +405,9 @@ func (m *CreateCollectionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *CreateCollectionRequest) GetProxyId() int64 { func (m *CreateCollectionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -421,9 +421,9 @@ func (m *CreateCollectionRequest) GetSchema() *commonpb.Blob {
type DropCollectionRequest struct { type DropCollectionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -462,9 +462,9 @@ func (m *DropCollectionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *DropCollectionRequest) GetReqId() int64 { func (m *DropCollectionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -476,9 +476,9 @@ func (m *DropCollectionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *DropCollectionRequest) GetProxyId() int64 { func (m *DropCollectionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -492,9 +492,9 @@ func (m *DropCollectionRequest) GetCollectionName() *servicepb.CollectionName {
type HasCollectionRequest struct { type HasCollectionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -533,9 +533,9 @@ func (m *HasCollectionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *HasCollectionRequest) GetReqId() int64 { func (m *HasCollectionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -547,9 +547,9 @@ func (m *HasCollectionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *HasCollectionRequest) GetProxyId() int64 { func (m *HasCollectionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -563,9 +563,9 @@ func (m *HasCollectionRequest) GetCollectionName() *servicepb.CollectionName {
type DescribeCollectionRequest struct { type DescribeCollectionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -604,9 +604,9 @@ func (m *DescribeCollectionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *DescribeCollectionRequest) GetReqId() int64 { func (m *DescribeCollectionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -618,9 +618,9 @@ func (m *DescribeCollectionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *DescribeCollectionRequest) GetProxyId() int64 { func (m *DescribeCollectionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -634,9 +634,9 @@ func (m *DescribeCollectionRequest) GetCollectionName() *servicepb.CollectionNam
type ShowCollectionRequest struct { type ShowCollectionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -674,9 +674,9 @@ func (m *ShowCollectionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *ShowCollectionRequest) GetReqId() int64 { func (m *ShowCollectionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -688,18 +688,18 @@ func (m *ShowCollectionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *ShowCollectionRequest) GetProxyId() int64 { func (m *ShowCollectionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
type CreatePartitionRequest struct { type CreatePartitionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -738,9 +738,9 @@ func (m *CreatePartitionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *CreatePartitionRequest) GetReqId() int64 { func (m *CreatePartitionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -752,9 +752,9 @@ func (m *CreatePartitionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *CreatePartitionRequest) GetProxyId() int64 { func (m *CreatePartitionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -768,9 +768,9 @@ func (m *CreatePartitionRequest) GetPartitionName() *servicepb.PartitionName {
type DropPartitionRequest struct { type DropPartitionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -809,9 +809,9 @@ func (m *DropPartitionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *DropPartitionRequest) GetReqId() int64 { func (m *DropPartitionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -823,9 +823,9 @@ func (m *DropPartitionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *DropPartitionRequest) GetProxyId() int64 { func (m *DropPartitionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -839,9 +839,9 @@ func (m *DropPartitionRequest) GetPartitionName() *servicepb.PartitionName {
type HasPartitionRequest struct { type HasPartitionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -880,9 +880,9 @@ func (m *HasPartitionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *HasPartitionRequest) GetReqId() int64 { func (m *HasPartitionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -894,9 +894,9 @@ func (m *HasPartitionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *HasPartitionRequest) GetProxyId() int64 { func (m *HasPartitionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -910,9 +910,9 @@ func (m *HasPartitionRequest) GetPartitionName() *servicepb.PartitionName {
type DescribePartitionRequest struct { type DescribePartitionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"` PartitionName *servicepb.PartitionName `protobuf:"bytes,5,opt,name=partition_name,json=partitionName,proto3" json:"partition_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -951,9 +951,9 @@ func (m *DescribePartitionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *DescribePartitionRequest) GetReqId() int64 { func (m *DescribePartitionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -965,9 +965,9 @@ func (m *DescribePartitionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *DescribePartitionRequest) GetProxyId() int64 { func (m *DescribePartitionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -981,9 +981,9 @@ func (m *DescribePartitionRequest) GetPartitionName() *servicepb.PartitionName {
type ShowPartitionRequest struct { type ShowPartitionRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` CollectionName *servicepb.CollectionName `protobuf:"bytes,5,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1022,9 +1022,9 @@ func (m *ShowPartitionRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *ShowPartitionRequest) GetReqId() int64 { func (m *ShowPartitionRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -1036,9 +1036,9 @@ func (m *ShowPartitionRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *ShowPartitionRequest) GetProxyId() int64 { func (m *ShowPartitionRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -1052,14 +1052,14 @@ func (m *ShowPartitionRequest) GetCollectionName() *servicepb.CollectionName {
type InsertRequest struct { type InsertRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"`
SegmentId int64 `protobuf:"varint,5,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` SegmentID int64 `protobuf:"varint,5,opt,name=segmentID,proto3" json:"segmentID,omitempty"`
ChannelId int64 `protobuf:"varint,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ChannelID int64 `protobuf:"varint,6,opt,name=channelID,proto3" json:"channelID,omitempty"`
ProxyId int64 `protobuf:"varint,7,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,7,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
Timestamps []uint64 `protobuf:"varint,8,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` Timestamps []uint64 `protobuf:"varint,8,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"`
RowIds []int64 `protobuf:"varint,9,rep,packed,name=row_ids,json=rowIds,proto3" json:"row_ids,omitempty"` RowIDs []int64 `protobuf:"varint,9,rep,packed,name=rowIDs,proto3" json:"rowIDs,omitempty"`
RowData []*commonpb.Blob `protobuf:"bytes,10,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"` RowData []*commonpb.Blob `protobuf:"bytes,10,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1098,9 +1098,9 @@ func (m *InsertRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *InsertRequest) GetReqId() int64 { func (m *InsertRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -1119,23 +1119,23 @@ func (m *InsertRequest) GetPartitionTag() string {
return "" return ""
} }
func (m *InsertRequest) GetSegmentId() int64 { func (m *InsertRequest) GetSegmentID() int64 {
if m != nil { if m != nil {
return m.SegmentId return m.SegmentID
} }
return 0 return 0
} }
func (m *InsertRequest) GetChannelId() int64 { func (m *InsertRequest) GetChannelID() int64 {
if m != nil { if m != nil {
return m.ChannelId return m.ChannelID
} }
return 0 return 0
} }
func (m *InsertRequest) GetProxyId() int64 { func (m *InsertRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -1147,9 +1147,9 @@ func (m *InsertRequest) GetTimestamps() []uint64 {
return nil return nil
} }
func (m *InsertRequest) GetRowIds() []int64 { func (m *InsertRequest) GetRowIDs() []int64 {
if m != nil { if m != nil {
return m.RowIds return m.RowIDs
} }
return nil return nil
} }
@ -1163,10 +1163,10 @@ func (m *InsertRequest) GetRowData() []*commonpb.Blob {
type DeleteRequest struct { type DeleteRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
ChannelId int64 `protobuf:"varint,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ChannelID int64 `protobuf:"varint,4,opt,name=channelID,proto3" json:"channelID,omitempty"`
ProxyId int64 `protobuf:"varint,5,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,5,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
Timestamps []uint64 `protobuf:"varint,6,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"` Timestamps []uint64 `protobuf:"varint,6,rep,packed,name=timestamps,proto3" json:"timestamps,omitempty"`
PrimaryKeys []int64 `protobuf:"varint,7,rep,packed,name=primary_keys,json=primaryKeys,proto3" json:"primary_keys,omitempty"` PrimaryKeys []int64 `protobuf:"varint,7,rep,packed,name=primary_keys,json=primaryKeys,proto3" json:"primary_keys,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -1206,9 +1206,9 @@ func (m *DeleteRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *DeleteRequest) GetReqId() int64 { func (m *DeleteRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -1220,16 +1220,16 @@ func (m *DeleteRequest) GetCollectionName() string {
return "" return ""
} }
func (m *DeleteRequest) GetChannelId() int64 { func (m *DeleteRequest) GetChannelID() int64 {
if m != nil { if m != nil {
return m.ChannelId return m.ChannelID
} }
return 0 return 0
} }
func (m *DeleteRequest) GetProxyId() int64 { func (m *DeleteRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -1250,10 +1250,10 @@ func (m *DeleteRequest) GetPrimaryKeys() []int64 {
type SearchRequest struct { type SearchRequest struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,2,opt,name=reqID,proto3" json:"reqID,omitempty"`
ProxyId int64 `protobuf:"varint,3,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,3,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ResultChannelId int64 `protobuf:"varint,5,opt,name=result_channel_id,json=resultChannelId,proto3" json:"result_channel_id,omitempty"` ResultChannelID int64 `protobuf:"varint,5,opt,name=result_channelID,json=resultChannelID,proto3" json:"result_channelID,omitempty"`
Query *commonpb.Blob `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` Query *commonpb.Blob `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1292,16 +1292,16 @@ func (m *SearchRequest) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *SearchRequest) GetReqId() int64 { func (m *SearchRequest) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
func (m *SearchRequest) GetProxyId() int64 { func (m *SearchRequest) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
@ -1313,9 +1313,9 @@ func (m *SearchRequest) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *SearchRequest) GetResultChannelId() int64 { func (m *SearchRequest) GetResultChannelID() int64 {
if m != nil { if m != nil {
return m.ResultChannelId return m.ResultChannelID
} }
return 0 return 0
} }
@ -1330,11 +1330,11 @@ func (m *SearchRequest) GetQuery() *commonpb.Blob {
type SearchResult struct { type SearchResult struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
Status *commonpb.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Status *commonpb.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
ReqId int64 `protobuf:"varint,3,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,3,opt,name=reqID,proto3" json:"reqID,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"` ProxyID int64 `protobuf:"varint,4,opt,name=proxyID,proto3" json:"proxyID,omitempty"`
QueryNodeId int64 `protobuf:"varint,5,opt,name=query_node_id,json=queryNodeId,proto3" json:"query_node_id,omitempty"` QueryNodeID int64 `protobuf:"varint,5,opt,name=query_nodeID,json=queryNodeID,proto3" json:"query_nodeID,omitempty"`
Timestamp uint64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ResultChannelId int64 `protobuf:"varint,7,opt,name=result_channel_id,json=resultChannelId,proto3" json:"result_channel_id,omitempty"` ResultChannelID int64 `protobuf:"varint,7,opt,name=result_channelID,json=resultChannelID,proto3" json:"result_channelID,omitempty"`
Hits []*servicepb.Hits `protobuf:"bytes,8,rep,name=hits,proto3" json:"hits,omitempty"` Hits []*servicepb.Hits `protobuf:"bytes,8,rep,name=hits,proto3" json:"hits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1380,23 +1380,23 @@ func (m *SearchResult) GetStatus() *commonpb.Status {
return nil return nil
} }
func (m *SearchResult) GetReqId() int64 { func (m *SearchResult) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
func (m *SearchResult) GetProxyId() int64 { func (m *SearchResult) GetProxyID() int64 {
if m != nil { if m != nil {
return m.ProxyId return m.ProxyID
} }
return 0 return 0
} }
func (m *SearchResult) GetQueryNodeId() int64 { func (m *SearchResult) GetQueryNodeID() int64 {
if m != nil { if m != nil {
return m.QueryNodeId return m.QueryNodeID
} }
return 0 return 0
} }
@ -1408,9 +1408,9 @@ func (m *SearchResult) GetTimestamp() uint64 {
return 0 return 0
} }
func (m *SearchResult) GetResultChannelId() int64 { func (m *SearchResult) GetResultChannelID() int64 {
if m != nil { if m != nil {
return m.ResultChannelId return m.ResultChannelID
} }
return 0 return 0
} }
@ -1424,7 +1424,7 @@ func (m *SearchResult) GetHits() []*servicepb.Hits {
type TimeTickMsg struct { type TimeTickMsg struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
PeerId int64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` PeerID int64 `protobuf:"varint,2,opt,name=peerID,proto3" json:"peerID,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1463,9 +1463,9 @@ func (m *TimeTickMsg) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *TimeTickMsg) GetPeerId() int64 { func (m *TimeTickMsg) GetPeerID() int64 {
if m != nil { if m != nil {
return m.PeerId return m.PeerID
} }
return 0 return 0
} }
@ -1478,11 +1478,11 @@ func (m *TimeTickMsg) GetTimestamp() uint64 {
} }
type Key2Seg struct { type Key2Seg struct {
RowId int64 `protobuf:"varint,1,opt,name=row_id,json=rowId,proto3" json:"row_id,omitempty"` RowID int64 `protobuf:"varint,1,opt,name=rowID,proto3" json:"rowID,omitempty"`
PrimaryKey int64 `protobuf:"varint,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` PrimaryKey int64 `protobuf:"varint,2,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
IsValid bool `protobuf:"varint,4,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` IsValid bool `protobuf:"varint,4,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
SegmentIds []int64 `protobuf:"varint,5,rep,packed,name=segment_ids,json=segmentIds,proto3" json:"segment_ids,omitempty"` SegmentIDs []int64 `protobuf:"varint,5,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -1513,9 +1513,9 @@ func (m *Key2Seg) XXX_DiscardUnknown() {
var xxx_messageInfo_Key2Seg proto.InternalMessageInfo var xxx_messageInfo_Key2Seg proto.InternalMessageInfo
func (m *Key2Seg) GetRowId() int64 { func (m *Key2Seg) GetRowID() int64 {
if m != nil { if m != nil {
return m.RowId return m.RowID
} }
return 0 return 0
} }
@ -1541,15 +1541,15 @@ func (m *Key2Seg) GetIsValid() bool {
return false return false
} }
func (m *Key2Seg) GetSegmentIds() []int64 { func (m *Key2Seg) GetSegmentIDs() []int64 {
if m != nil { if m != nil {
return m.SegmentIds return m.SegmentIDs
} }
return nil return nil
} }
type Key2SegMsg struct { type Key2SegMsg struct {
ReqId int64 `protobuf:"varint,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` ReqID int64 `protobuf:"varint,1,opt,name=reqID,proto3" json:"reqID,omitempty"`
Key2Seg []*Key2Seg `protobuf:"bytes,2,rep,name=key2seg,proto3" json:"key2seg,omitempty"` Key2Seg []*Key2Seg `protobuf:"bytes,2,rep,name=key2seg,proto3" json:"key2seg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1581,9 +1581,9 @@ func (m *Key2SegMsg) XXX_DiscardUnknown() {
var xxx_messageInfo_Key2SegMsg proto.InternalMessageInfo var xxx_messageInfo_Key2SegMsg proto.InternalMessageInfo
func (m *Key2SegMsg) GetReqId() int64 { func (m *Key2SegMsg) GetReqID() int64 {
if m != nil { if m != nil {
return m.ReqId return m.ReqID
} }
return 0 return 0
} }
@ -1596,7 +1596,7 @@ func (m *Key2SegMsg) GetKey2Seg() []*Key2Seg {
} }
type SegmentStats struct { type SegmentStats struct {
SegmentId int64 `protobuf:"varint,1,opt,name=segment_id,json=segmentId,proto3" json:"segment_id,omitempty"` SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"`
MemorySize int64 `protobuf:"varint,2,opt,name=memory_size,json=memorySize,proto3" json:"memory_size,omitempty"` MemorySize int64 `protobuf:"varint,2,opt,name=memory_size,json=memorySize,proto3" json:"memory_size,omitempty"`
NumRows int64 `protobuf:"varint,3,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"` NumRows int64 `protobuf:"varint,3,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"`
RecentlyModified bool `protobuf:"varint,4,opt,name=recently_modified,json=recentlyModified,proto3" json:"recently_modified,omitempty"` RecentlyModified bool `protobuf:"varint,4,opt,name=recently_modified,json=recentlyModified,proto3" json:"recently_modified,omitempty"`
@ -1630,9 +1630,9 @@ func (m *SegmentStats) XXX_DiscardUnknown() {
var xxx_messageInfo_SegmentStats proto.InternalMessageInfo var xxx_messageInfo_SegmentStats proto.InternalMessageInfo
func (m *SegmentStats) GetSegmentId() int64 { func (m *SegmentStats) GetSegmentID() int64 {
if m != nil { if m != nil {
return m.SegmentId return m.SegmentID
} }
return 0 return 0
} }
@ -1660,7 +1660,7 @@ func (m *SegmentStats) GetRecentlyModified() bool {
type QueryNodeSegStats struct { type QueryNodeSegStats struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"` MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
PeerId int64 `protobuf:"varint,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` PeerID int64 `protobuf:"varint,2,opt,name=peerID,proto3" json:"peerID,omitempty"`
SegStats []*SegmentStats `protobuf:"bytes,3,rep,name=seg_stats,json=segStats,proto3" json:"seg_stats,omitempty"` SegStats []*SegmentStats `protobuf:"bytes,3,rep,name=seg_stats,json=segStats,proto3" json:"seg_stats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -1699,9 +1699,9 @@ func (m *QueryNodeSegStats) GetMsgType() MsgType {
return MsgType_kNone return MsgType_kNone
} }
func (m *QueryNodeSegStats) GetPeerId() int64 { func (m *QueryNodeSegStats) GetPeerID() int64 {
if m != nil { if m != nil {
return m.PeerId return m.PeerID
} }
return 0 return 0
} }
@ -1716,8 +1716,8 @@ func (m *QueryNodeSegStats) GetSegStats() []*SegmentStats {
func init() { func init() {
proto.RegisterEnum("milvus.proto.internal.MsgType", MsgType_name, MsgType_value) proto.RegisterEnum("milvus.proto.internal.MsgType", MsgType_name, MsgType_value)
proto.RegisterEnum("milvus.proto.internal.PeerRole", PeerRole_name, PeerRole_value) proto.RegisterEnum("milvus.proto.internal.PeerRole", PeerRole_name, PeerRole_value)
proto.RegisterType((*IdRequest)(nil), "milvus.proto.internal.IdRequest") proto.RegisterType((*IDRequest)(nil), "milvus.proto.internal.IDRequest")
proto.RegisterType((*IdResponse)(nil), "milvus.proto.internal.IdResponse") proto.RegisterType((*IDResponse)(nil), "milvus.proto.internal.IDResponse")
proto.RegisterType((*TsoRequest)(nil), "milvus.proto.internal.TsoRequest") proto.RegisterType((*TsoRequest)(nil), "milvus.proto.internal.TsoRequest")
proto.RegisterType((*TsoResponse)(nil), "milvus.proto.internal.TsoResponse") proto.RegisterType((*TsoResponse)(nil), "milvus.proto.internal.TsoResponse")
proto.RegisterType((*CreateCollectionRequest)(nil), "milvus.proto.internal.CreateCollectionRequest") proto.RegisterType((*CreateCollectionRequest)(nil), "milvus.proto.internal.CreateCollectionRequest")
@ -1744,84 +1744,84 @@ func init() {
func init() { proto.RegisterFile("internal_msg.proto", fileDescriptor_7eb37f6b80b23116) } func init() { proto.RegisterFile("internal_msg.proto", fileDescriptor_7eb37f6b80b23116) }
var fileDescriptor_7eb37f6b80b23116 = []byte{ var fileDescriptor_7eb37f6b80b23116 = []byte{
// 1264 bytes of a gzipped FileDescriptorProto // 1251 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4b, 0x6f, 0x1c, 0xc5, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4f, 0x6f, 0x1b, 0x45,
0x13, 0xcf, 0xec, 0xec, 0xb3, 0xd6, 0xbb, 0x1e, 0xb7, 0xed, 0xbf, 0x37, 0xf9, 0x43, 0x62, 0x26, 0x14, 0xef, 0x7a, 0x1d, 0xff, 0x79, 0x4e, 0x9c, 0xcd, 0x24, 0x69, 0xb7, 0x05, 0xb5, 0xe9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x4f, 0xf1, 0xa6, 0xca, 0x78, 0x61, 0x0e, 0xf6,
0x7b, 0x43, 0x81, 0xde, 0x46, 0x11, 0xe2, 0x0d, 0x15, 0xf1, 0xb1, 0x98, 0xee, 0xed, 0xd5, 0x95, 0xf6, 0x6a, 0xca, 0x73, 0xeb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7e, 0xd6, 0xa3, 0xba, 0x72,
0xe6, 0xf6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0x91, 0x30, 0x79, 0x9d, 0x14, 0x00, 0x00, 0x14, 0x00, 0x00,
} }

View File

@ -90,5 +90,5 @@ service Master {
rpc AllocTimestamp(internal.TsoRequest) returns (internal.TsoResponse) {} rpc AllocTimestamp(internal.TsoRequest) returns (internal.TsoResponse) {}
rpc AllocId(internal.IdRequest) returns (internal.IdResponse) {} rpc AllocID(internal.IDRequest) returns (internal.IDResponse) {}
} }

View File

@ -33,31 +33,31 @@ var fileDescriptor_f9c348dec43a6705 = []byte{
// 432 bytes of a gzipped FileDescriptorProto // 432 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x51, 0xaf, 0xd2, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x51, 0xaf, 0xd2, 0x30,
0x14, 0xc7, 0x79, 0xba, 0xc6, 0x86, 0xcb, 0xf5, 0xd6, 0x37, 0x7c, 0xf1, 0xee, 0xc9, 0x80, 0x6c, 0x14, 0xc7, 0x79, 0xba, 0xc6, 0x86, 0xcb, 0xf5, 0xd6, 0x37, 0x7c, 0xf1, 0xee, 0xc9, 0x80, 0x6c,
0x46, 0xbf, 0x80, 0x02, 0x0f, 0x90, 0x68, 0x42, 0x80, 0x17, 0x35, 0x06, 0xbb, 0xad, 0x81, 0xc6, 0x46, 0xbf, 0x80, 0xc2,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51, 0x8e, 0x7c, 0x13, 0x18, 0x42, 0x50, 0x02, 0x83, 0xea, 0xbb, 0x99, 0x45, 0xd1, 0x4d,
0x79, 0x7e, 0xf7, 0x27, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x05, 0x0f, 0x90, 0x65, 0x05, 0x00, 0x00, 0x79, 0x7e, 0xf7, 0x27, 0x00, 0x00, 0xff, 0xff, 0xba, 0x9e, 0x0e, 0x5d, 0x65, 0x05, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
@ -133,7 +133,7 @@ type MasterClient interface {
// @return StringListResponse // @return StringListResponse
ShowPartitions(ctx context.Context, in *internalpb.ShowPartitionRequest, opts ...grpc.CallOption) (*servicepb.StringListResponse, error) ShowPartitions(ctx context.Context, in *internalpb.ShowPartitionRequest, opts ...grpc.CallOption) (*servicepb.StringListResponse, error)
AllocTimestamp(ctx context.Context, in *internalpb.TsoRequest, opts ...grpc.CallOption) (*internalpb.TsoResponse, error) AllocTimestamp(ctx context.Context, in *internalpb.TsoRequest, opts ...grpc.CallOption) (*internalpb.TsoResponse, error)
AllocId(ctx context.Context, in *internalpb.IdRequest, opts ...grpc.CallOption) (*internalpb.IdResponse, error) AllocID(ctx context.Context, in *internalpb.IDRequest, opts ...grpc.CallOption) (*internalpb.IDResponse, error)
} }
type masterClient struct { type masterClient struct {
@ -243,9 +243,9 @@ func (c *masterClient) AllocTimestamp(ctx context.Context, in *internalpb.TsoReq
return out, nil return out, nil
} }
func (c *masterClient) AllocId(ctx context.Context, in *internalpb.IdRequest, opts ...grpc.CallOption) (*internalpb.IdResponse, error) { func (c *masterClient) AllocID(ctx context.Context, in *internalpb.IDRequest, opts ...grpc.CallOption) (*internalpb.IDResponse, error) {
out := new(internalpb.IdResponse) out := new(internalpb.IDResponse)
err := c.cc.Invoke(ctx, "/milvus.proto.master.Master/AllocId", in, out, opts...) err := c.cc.Invoke(ctx, "/milvus.proto.master.Master/AllocID", in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -315,7 +315,7 @@ type MasterServer interface {
// @return StringListResponse // @return StringListResponse
ShowPartitions(context.Context, *internalpb.ShowPartitionRequest) (*servicepb.StringListResponse, error) ShowPartitions(context.Context, *internalpb.ShowPartitionRequest) (*servicepb.StringListResponse, error)
AllocTimestamp(context.Context, *internalpb.TsoRequest) (*internalpb.TsoResponse, error) AllocTimestamp(context.Context, *internalpb.TsoRequest) (*internalpb.TsoResponse, error)
AllocId(context.Context, *internalpb.IdRequest) (*internalpb.IdResponse, error) AllocID(context.Context, *internalpb.IDRequest) (*internalpb.IDResponse, error)
} }
// UnimplementedMasterServer can be embedded to have forward compatible implementations. // UnimplementedMasterServer can be embedded to have forward compatible implementations.
@ -355,8 +355,8 @@ func (*UnimplementedMasterServer) ShowPartitions(ctx context.Context, req *inter
func (*UnimplementedMasterServer) AllocTimestamp(ctx context.Context, req *internalpb.TsoRequest) (*internalpb.TsoResponse, error) { func (*UnimplementedMasterServer) AllocTimestamp(ctx context.Context, req *internalpb.TsoRequest) (*internalpb.TsoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AllocTimestamp not implemented") return nil, status.Errorf(codes.Unimplemented, "method AllocTimestamp not implemented")
} }
func (*UnimplementedMasterServer) AllocId(ctx context.Context, req *internalpb.IdRequest) (*internalpb.IdResponse, error) { func (*UnimplementedMasterServer) AllocID(ctx context.Context, req *internalpb.IDRequest) (*internalpb.IDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AllocId not implemented") return nil, status.Errorf(codes.Unimplemented, "method AllocID not implemented")
} }
func RegisterMasterServer(s *grpc.Server, srv MasterServer) { func RegisterMasterServer(s *grpc.Server, srv MasterServer) {
@ -561,20 +561,20 @@ func _Master_AllocTimestamp_Handler(srv interface{}, ctx context.Context, dec fu
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Master_AllocId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Master_AllocID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(internalpb.IdRequest) in := new(internalpb.IDRequest)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
if interceptor == nil { if interceptor == nil {
return srv.(MasterServer).AllocId(ctx, in) return srv.(MasterServer).AllocID(ctx, in)
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/milvus.proto.master.Master/AllocId", FullMethod: "/milvus.proto.master.Master/AllocID",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MasterServer).AllocId(ctx, req.(*internalpb.IdRequest)) return srv.(MasterServer).AllocID(ctx, req.(*internalpb.IDRequest))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
@ -628,8 +628,8 @@ var _Master_serviceDesc = grpc.ServiceDesc{
Handler: _Master_AllocTimestamp_Handler, Handler: _Master_AllocTimestamp_Handler,
}, },
{ {
MethodName: "AllocId", MethodName: "AllocID",
Handler: _Master_AllocId_Handler, Handler: _Master_AllocID_Handler,
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},

View File

@ -42,6 +42,6 @@ message FieldSchema {
message CollectionSchema { message CollectionSchema {
string name = 1; string name = 1;
string description = 2; string description = 2;
bool auto_id = 3; bool autoID = 3;
repeated FieldSchema fields = 4; repeated FieldSchema fields = 4;
} }

View File

@ -153,7 +153,7 @@ func (m *FieldSchema) GetIndexParams() []*commonpb.KeyValuePair {
type CollectionSchema struct { type CollectionSchema struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
AutoId bool `protobuf:"varint,3,opt,name=auto_id,json=autoId,proto3" json:"auto_id,omitempty"` AutoID bool `protobuf:"varint,3,opt,name=autoID,proto3" json:"autoID,omitempty"`
Fields []*FieldSchema `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` Fields []*FieldSchema `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
@ -199,9 +199,9 @@ func (m *CollectionSchema) GetDescription() string {
return "" return ""
} }
func (m *CollectionSchema) GetAutoId() bool { func (m *CollectionSchema) GetAutoID() bool {
if m != nil { if m != nil {
return m.AutoId return m.AutoID
} }
return false return false
} }
@ -222,32 +222,31 @@ func init() {
func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) }
var fileDescriptor_1c5fb4d8cc22d66a = []byte{ var fileDescriptor_1c5fb4d8cc22d66a = []byte{
// 419 bytes of a gzipped FileDescriptorProto // 416 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0x5f, 0x8b, 0xd4, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0x5f, 0x8b, 0xd4, 0x30,
0x14, 0xc5, 0xed, 0xfc, 0x73, 0xe6, 0x76, 0x94, 0x18, 0x05, 0x07, 0x41, 0xa8, 0xfb, 0x34, 0x08, 0x14, 0xc5, 0xed, 0xfc, 0x63, 0xe6, 0x76, 0x94, 0x18, 0x45, 0x06, 0x41, 0xa8, 0xfb, 0x34, 0x08,
0xb6, 0x38, 0x2b, 0xc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x2a, 0x4d, 0x27, 0xa6, 0x3e, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x3c, 0x4e, 0x3c, 0xbb, 0xa9, 0x4f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x74, 0xb3, 0xe8, 0x78, 0xba, 0x02, 0x00, 0x00,
0x02, 0x00, 0x00,
} }

View File

@ -151,7 +151,7 @@ message Score {
* @brief Entities hit by query * @brief Entities hit by query
*/ */
message Hits { message Hits {
repeated int64 ids = 1; repeated int64 IDs = 1;
repeated common.Blob row_data = 2; repeated common.Blob row_data = 2;
repeated Score scores = 3; repeated Score scores = 3;
} }

View File

@ -791,7 +791,7 @@ func (m *Score) GetValues() []float32 {
//* //*
// @brief Entities hit by query // @brief Entities hit by query
type Hits struct { type Hits struct {
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` IDs []int64 `protobuf:"varint,1,rep,packed,name=IDs,proto3" json:"IDs,omitempty"`
RowData []*commonpb.Blob `protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"` RowData []*commonpb.Blob `protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"`
Scores []*Score `protobuf:"bytes,3,rep,name=scores,proto3" json:"scores,omitempty"` Scores []*Score `protobuf:"bytes,3,rep,name=scores,proto3" json:"scores,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -824,9 +824,9 @@ func (m *Hits) XXX_DiscardUnknown() {
var xxx_messageInfo_Hits proto.InternalMessageInfo var xxx_messageInfo_Hits proto.InternalMessageInfo
func (m *Hits) GetIds() []int64 { func (m *Hits) GetIDs() []int64 {
if m != nil { if m != nil {
return m.Ids return m.IDs
} }
return nil return nil
} }
@ -917,7 +917,7 @@ func init() {
func init() { proto.RegisterFile("service_msg.proto", fileDescriptor_b4b40b84dd2f74cb) } func init() { proto.RegisterFile("service_msg.proto", fileDescriptor_b4b40b84dd2f74cb) }
var fileDescriptor_b4b40b84dd2f74cb = []byte{ var fileDescriptor_b4b40b84dd2f74cb = []byte{
// 762 bytes of a gzipped FileDescriptorProto // 763 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5d, 0x6f, 0xf3, 0x34, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5d, 0x6f, 0xf3, 0x34,
0x14, 0x26, 0x4d, 0x5b, 0xba, 0xd3, 0xb4, 0x6f, 0x67, 0x0a, 0x0a, 0xdb, 0x4d, 0xc9, 0xab, 0x41, 0x14, 0x26, 0x4d, 0x5b, 0xba, 0xd3, 0xb4, 0x6f, 0x67, 0x0a, 0x0a, 0xdb, 0x4d, 0xc9, 0xab, 0x41,
0x05, 0xa2, 0x15, 0x1b, 0x12, 0xda, 0x05, 0x12, 0xed, 0x36, 0x60, 0x1f, 0xea, 0x86, 0x5b, 0x4d, 0x05, 0xa2, 0x15, 0x1b, 0x12, 0xda, 0x05, 0x12, 0xed, 0x36, 0x60, 0x1f, 0xea, 0x86, 0x5b, 0x4d,
@ -955,15 +955,15 @@ var fileDescriptor_b4b40b84dd2f74cb = []byte{
0xad, 0xb8, 0x97, 0x74, 0xae, 0xff, 0xd6, 0x0d, 0x61, 0x02, 0xaf, 0x25, 0x39, 0x7f, 0x19, 0xd0, 0xad, 0xb8, 0x97, 0x74, 0xae, 0xff, 0xd6, 0x0d, 0x61, 0x02, 0xaf, 0x25, 0x39, 0x7f, 0x19, 0xd0,
0x5c, 0x3a, 0xe6, 0x8b, 0xfb, 0xf9, 0x06, 0x8a, 0xfa, 0x5b, 0x66, 0xdd, 0xbc, 0xfd, 0x8f, 0xff, 0x5c, 0x3a, 0xe6, 0x8b, 0xfb, 0xf9, 0x06, 0x8a, 0xfa, 0x5b, 0x66, 0xdd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ff, 0x12, 0x37, 0x33, 0x02, 0x37, 0x08, 0x00, 0x00,
} }

View File

@ -151,7 +151,7 @@ func (p *Proxy) queryResultLoop() {
} }
tsMsg := msgPack.Msgs[0] tsMsg := msgPack.Msgs[0]
searchResultMsg, _ := (*tsMsg).(*msgstream.SearchResultMsg) searchResultMsg, _ := (*tsMsg).(*msgstream.SearchResultMsg)
reqID := searchResultMsg.GetReqId() reqID := searchResultMsg.GetReqID()
_, ok := queryResultBuf[reqID] _, ok := queryResultBuf[reqID]
if !ok { if !ok {
queryResultBuf[reqID] = make([]*internalpb.SearchResult, 0) queryResultBuf[reqID] = make([]*internalpb.SearchResult, 0)

View File

@ -13,7 +13,7 @@ import (
) )
type task interface { type task interface {
ID() UniqueID // return ReqId ID() UniqueID // return ReqID
Type() internalpb.MsgType Type() internalpb.MsgType
BeginTs() Timestamp BeginTs() Timestamp
EndTs() Timestamp EndTs() Timestamp
@ -50,7 +50,7 @@ func (it *InsertTask) EndTs() Timestamp {
} }
func (it *InsertTask) ID() UniqueID { func (it *InsertTask) ID() UniqueID {
return it.ReqId return it.ReqID
} }
func (it *InsertTask) Type() internalpb.MsgType { func (it *InsertTask) Type() internalpb.MsgType {
@ -104,7 +104,7 @@ type CreateCollectionTask struct {
} }
func (cct *CreateCollectionTask) ID() UniqueID { func (cct *CreateCollectionTask) ID() UniqueID {
return cct.ReqId return cct.ReqID
} }
func (cct *CreateCollectionTask) Type() internalpb.MsgType { func (cct *CreateCollectionTask) Type() internalpb.MsgType {
@ -172,7 +172,7 @@ type DropCollectionTask struct {
} }
func (dct *DropCollectionTask) ID() UniqueID { func (dct *DropCollectionTask) ID() UniqueID {
return dct.ReqId return dct.ReqID
} }
func (dct *DropCollectionTask) Type() internalpb.MsgType { func (dct *DropCollectionTask) Type() internalpb.MsgType {
@ -241,7 +241,7 @@ type QueryTask struct {
} }
func (qt *QueryTask) ID() UniqueID { func (qt *QueryTask) ID() UniqueID {
return qt.ReqId return qt.ReqID
} }
func (qt *QueryTask) Type() internalpb.MsgType { func (qt *QueryTask) Type() internalpb.MsgType {
@ -320,7 +320,7 @@ func (qt *QueryTask) Notify(err error) {
qt.resultChan <- &servicepb.QueryResult{} qt.resultChan <- &servicepb.QueryResult{}
return return
} }
k := len(searchResults[0].Hits[0].Ids) // k k := len(searchResults[0].Hits[0].IDs) // k
queryResult := &servicepb.QueryResult{ queryResult := &servicepb.QueryResult{
Status: &commonpb.Status{ Status: &commonpb.Status{
ErrorCode: 0, ErrorCode: 0,
@ -347,7 +347,7 @@ func (qt *QueryTask) Notify(err error) {
} }
} }
choiceOffset := locs[choice] choiceOffset := locs[choice]
hits.Ids = append(hits.Ids, searchResults[choice].Hits[i].Ids[choiceOffset]) hits.IDs = append(hits.IDs, searchResults[choice].Hits[i].IDs[choiceOffset])
hits.RowData = append(hits.RowData, searchResults[choice].Hits[i].RowData[choiceOffset]) hits.RowData = append(hits.RowData, searchResults[choice].Hits[i].RowData[choiceOffset])
hits.Scores = append(hits.Scores, searchResults[choice].Hits[i].Scores[choiceOffset]) hits.Scores = append(hits.Scores, searchResults[choice].Hits[i].Scores[choiceOffset])
locs[choice]++ locs[choice]++
@ -369,7 +369,7 @@ type HasCollectionTask struct {
} }
func (hct *HasCollectionTask) ID() UniqueID { func (hct *HasCollectionTask) ID() UniqueID {
return hct.ReqId return hct.ReqID
} }
func (hct *HasCollectionTask) Type() internalpb.MsgType { func (hct *HasCollectionTask) Type() internalpb.MsgType {
@ -440,7 +440,7 @@ type DescribeCollectionTask struct {
} }
func (dct *DescribeCollectionTask) ID() UniqueID { func (dct *DescribeCollectionTask) ID() UniqueID {
return dct.ReqId return dct.ReqID
} }
func (dct *DescribeCollectionTask) Type() internalpb.MsgType { func (dct *DescribeCollectionTask) Type() internalpb.MsgType {
@ -510,7 +510,7 @@ type ShowCollectionsTask struct {
} }
func (sct *ShowCollectionsTask) ID() UniqueID { func (sct *ShowCollectionsTask) ID() UniqueID {
return sct.ReqId return sct.ReqID
} }
func (sct *ShowCollectionsTask) Type() internalpb.MsgType { func (sct *ShowCollectionsTask) Type() internalpb.MsgType {

View File

@ -130,19 +130,19 @@ type DqTaskQueue struct {
func (queue *DdTaskQueue) Enqueue(t task) error { func (queue *DdTaskQueue) Enqueue(t task) error {
queue.lock.Lock() queue.lock.Lock()
defer queue.lock.Unlock() defer queue.lock.Unlock()
// TODO: set Ts, ReqId, ProxyId // TODO: set Ts, ReqID, ProxyID
queue.AddUnissuedTask(t) queue.AddUnissuedTask(t)
return nil return nil
} }
func (queue *DmTaskQueue) Enqueue(t task) error { func (queue *DmTaskQueue) Enqueue(t task) error {
// TODO: set Ts, ReqId, ProxyId // TODO: set Ts, ReqID, ProxyID
queue.AddUnissuedTask(t) queue.AddUnissuedTask(t)
return nil return nil
} }
func (queue *DqTaskQueue) Enqueue(t task) error { func (queue *DqTaskQueue) Enqueue(t task) error {
// TODO: set Ts, ReqId, ProxyId // TODO: set Ts, ReqID, ProxyID
queue.AddUnissuedTask(t) queue.AddUnissuedTask(t)
return nil return nil
} }

View File

@ -68,7 +68,7 @@ func (tt *timeTick) tick() error {
var timeTickMsg msgstream.TsMsg = &msgstream.TimeTickMsg{ var timeTickMsg msgstream.TsMsg = &msgstream.TimeTickMsg{
TimeTickMsg: internalpb.TimeTickMsg{ TimeTickMsg: internalpb.TimeTickMsg{
MsgType: internalpb.MsgType_kTimeTick, MsgType: internalpb.MsgType_kTimeTick,
PeerId: tt.peerID, PeerID: tt.peerID,
Timestamp: tt.currentTick, Timestamp: tt.currentTick,
}, },
} }

View File

@ -47,10 +47,10 @@ func TestColSegContainer_addCollection(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -60,7 +60,7 @@ func TestColSegContainer_addCollection(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
} }
@ -99,10 +99,10 @@ func TestColSegContainer_removeCollection(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -112,7 +112,7 @@ func TestColSegContainer_removeCollection(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
err := node.container.removeCollection(collection) err := node.container.removeCollection(collection)
@ -155,10 +155,10 @@ func TestColSegContainer_getCollectionByID(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -168,14 +168,14 @@ func TestColSegContainer_getCollectionByID(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
targetCollection, err := node.container.getCollectionByID(UniqueID(0)) targetCollection, err := node.container.getCollectionByID(UniqueID(0))
assert.NoError(t, err) assert.NoError(t, err)
assert.NotNil(t, targetCollection) assert.NotNil(t, targetCollection)
assert.Equal(t, targetCollection.meta.Schema.Name, "collection0") assert.Equal(t, targetCollection.meta.Schema.Name, "collection0")
assert.Equal(t, targetCollection.meta.Id, UniqueID(0)) assert.Equal(t, targetCollection.meta.ID, UniqueID(0))
} }
func TestColSegContainer_getCollectionByName(t *testing.T) { func TestColSegContainer_getCollectionByName(t *testing.T) {
@ -213,10 +213,10 @@ func TestColSegContainer_getCollectionByName(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -226,14 +226,14 @@ func TestColSegContainer_getCollectionByName(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
targetCollection, err := node.container.getCollectionByName("collection0") targetCollection, err := node.container.getCollectionByName("collection0")
assert.NoError(t, err) assert.NoError(t, err)
assert.NotNil(t, targetCollection) assert.NotNil(t, targetCollection)
assert.Equal(t, targetCollection.meta.Schema.Name, "collection0") assert.Equal(t, targetCollection.meta.Schema.Name, "collection0")
assert.Equal(t, targetCollection.meta.Id, UniqueID(0)) assert.Equal(t, targetCollection.meta.ID, UniqueID(0))
} }
//----------------------------------------------------------------------------------------------------- partition //----------------------------------------------------------------------------------------------------- partition
@ -272,10 +272,10 @@ func TestColSegContainer_addPartition(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -285,7 +285,7 @@ func TestColSegContainer_addPartition(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
for _, tag := range collectionMeta.PartitionTags { for _, tag := range collectionMeta.PartitionTags {
@ -330,10 +330,10 @@ func TestColSegContainer_removePartition(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -343,7 +343,7 @@ func TestColSegContainer_removePartition(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
for _, tag := range collectionMeta.PartitionTags { for _, tag := range collectionMeta.PartitionTags {
@ -390,10 +390,10 @@ func TestColSegContainer_getPartitionByTag(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -403,7 +403,7 @@ func TestColSegContainer_getPartitionByTag(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
for _, tag := range collectionMeta.PartitionTags { for _, tag := range collectionMeta.PartitionTags {
@ -453,10 +453,10 @@ func TestColSegContainer_addSegment(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -466,7 +466,7 @@ func TestColSegContainer_addSegment(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0]) partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0])
@ -515,10 +515,10 @@ func TestColSegContainer_removeSegment(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -528,7 +528,7 @@ func TestColSegContainer_removeSegment(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0]) partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0])
@ -579,10 +579,10 @@ func TestColSegContainer_getSegmentByID(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -592,7 +592,7 @@ func TestColSegContainer_getSegmentByID(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0]) partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0])
@ -644,10 +644,10 @@ func TestColSegContainer_hasSegment(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -657,7 +657,7 @@ func TestColSegContainer_hasSegment(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0]) partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0])

View File

@ -26,7 +26,7 @@ func (c *Collection) Name() string {
} }
func (c *Collection) ID() UniqueID { func (c *Collection) ID() UniqueID {
return (*c.meta).Id return (*c.meta).ID
} }
func (c *Collection) Partitions() *[]*Partition { func (c *Collection) Partitions() *[]*Partition {

View File

@ -46,10 +46,10 @@ func TestCollection_Partitions(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -59,7 +59,7 @@ func TestCollection_Partitions(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
for _, tag := range collectionMeta.PartitionTags { for _, tag := range collectionMeta.PartitionTags {
@ -102,10 +102,10 @@ func TestCollection_newCollection(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -114,7 +114,7 @@ func TestCollection_newCollection(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
} }
func TestCollection_deleteCollection(t *testing.T) { func TestCollection_deleteCollection(t *testing.T) {
@ -148,10 +148,10 @@ func TestCollection_deleteCollection(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -160,7 +160,7 @@ func TestCollection_deleteCollection(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
deleteCollection(collection) deleteCollection(collection)
} }

View File

@ -68,10 +68,10 @@ func TestManipulationService_Start(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -80,7 +80,7 @@ func TestManipulationService_Start(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0]) partition, err := node.container.addPartition(collection, collectionMeta.PartitionTags[0])
@ -130,14 +130,14 @@ func TestManipulationService_Start(t *testing.T) {
}, },
InsertRequest: internalPb.InsertRequest{ InsertRequest: internalPb.InsertRequest{
MsgType: internalPb.MsgType_kInsert, MsgType: internalPb.MsgType_kInsert,
ReqId: int64(0), ReqID: int64(0),
CollectionName: "collection0", CollectionName: "collection0",
PartitionTag: "default", PartitionTag: "default",
SegmentId: int64(0), SegmentID: int64(0),
ChannelId: int64(0), ChannelID: int64(0),
ProxyId: int64(0), ProxyID: int64(0),
Timestamps: []uint64{uint64(i + 1000), uint64(i + 1000)}, Timestamps: []uint64{uint64(i + 1000), uint64(i + 1000)},
RowIds: []int64{int64(i), int64(i)}, RowIDs: []int64{int64(i), int64(i)},
RowData: []*commonpb.Blob{ RowData: []*commonpb.Blob{
{Value: rawData}, {Value: rawData},
{Value: rawData}, {Value: rawData},

View File

@ -49,15 +49,15 @@ func (iNode *insertNode) Operate(in []*Msg) []*Msg {
// 1. hash insertMessages to insertData // 1. hash insertMessages to insertData
for _, task := range iMsg.insertMessages { for _, task := range iMsg.insertMessages {
if len(task.RowIds) != len(task.Timestamps) || len(task.RowIds) != len(task.RowData) { if len(task.RowIDs) != len(task.Timestamps) || len(task.RowIDs) != len(task.RowData) {
// TODO: what if the messages are misaligned? // TODO: what if the messages are misaligned?
// Here, we ignore those messages and print error // Here, we ignore those messages and print error
log.Println("Error, misaligned messages detected") log.Println("Error, misaligned messages detected")
continue continue
} }
insertData.insertIDs[task.SegmentId] = append(insertData.insertIDs[task.SegmentId], task.RowIds...) insertData.insertIDs[task.SegmentID] = append(insertData.insertIDs[task.SegmentID], task.RowIDs...)
insertData.insertTimestamps[task.SegmentId] = append(insertData.insertTimestamps[task.SegmentId], task.Timestamps...) insertData.insertTimestamps[task.SegmentID] = append(insertData.insertTimestamps[task.SegmentID], task.Timestamps...)
insertData.insertRecords[task.SegmentId] = append(insertData.insertRecords[task.SegmentId], task.RowData...) insertData.insertRecords[task.SegmentID] = append(insertData.insertRecords[task.SegmentID], task.RowData...)
} }
// 2. do preInsert // 2. do preInsert

View File

@ -32,12 +32,12 @@ func newKey2SegNode() *key2SegNode {
// //
// var key2SegMsg = node.messageClient.Key2SegMsg // var key2SegMsg = node.messageClient.Key2SegMsg
// for _, msg := range key2SegMsg { // for _, msg := range key2SegMsg {
// if msg.SegmentId == nil { // if msg.SegmentID == nil {
// segmentIDs = append(segmentIDs, -1) // segmentIDs = append(segmentIDs, -1)
// entityIDs = append(entityIDs, msg.Uid) // entityIDs = append(entityIDs, msg.Uid)
// timestamps = append(timestamps, msg.Timestamp) // timestamps = append(timestamps, msg.Timestamp)
// } else { // } else {
// for _, segmentID := range msg.SegmentId { // for _, segmentID := range msg.SegmentID {
// segmentIDs = append(segmentIDs, segmentID) // segmentIDs = append(segmentIDs, segmentID)
// entityIDs = append(entityIDs, msg.Uid) // entityIDs = append(entityIDs, msg.Uid)
// timestamps = append(timestamps, msg.Timestamp) // timestamps = append(timestamps, msg.Timestamp)

View File

@ -163,7 +163,7 @@ func (mService *metaService) processSegmentCreate(id string, value string) {
// TODO: what if seg == nil? We need to notify master and return rpc request failed // TODO: what if seg == nil? We need to notify master and return rpc request failed
if seg != nil { if seg != nil {
var col, err = mService.container.getCollectionByID(seg.CollectionId) var col, err = mService.container.getCollectionByID(seg.CollectionID)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return return
@ -175,7 +175,7 @@ func (mService *metaService) processSegmentCreate(id string, value string) {
return return
} }
if partition != nil { if partition != nil {
_, err = mService.container.addSegment(col, partition, seg.SegmentId) _, err = mService.container.addSegment(col, partition, seg.SegmentID)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return return
@ -206,7 +206,7 @@ func (mService *metaService) processSegmentModify(id string, value string) {
} }
if seg != nil { if seg != nil {
targetSegment, err := mService.container.getSegmentByID(seg.SegmentId) targetSegment, err := mService.container.getSegmentByID(seg.SegmentID)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
return return

View File

@ -46,10 +46,10 @@ func TestPartition_Segments(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -59,7 +59,7 @@ func TestPartition_Segments(t *testing.T) {
var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob) var collection = node.container.addCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
assert.Equal(t, len(node.container.collections), 1) assert.Equal(t, len(node.container.collections), 1)
for _, tag := range collectionMeta.PartitionTags { for _, tag := range collectionMeta.PartitionTags {

View File

@ -111,7 +111,7 @@ func (ss *searchService) search(searchMessages []*msgstream.TsMsg) error {
// if !ok { // if !ok {
// return errors.New("invalid request type = " + string((*msg).Type())) // return errors.New("invalid request type = " + string((*msg).Type()))
// } // }
// var clientID = searchMsg.ProxyId // var clientID = searchMsg.ProxyID
// var searchTimestamp = searchMsg.Timestamp // var searchTimestamp = searchMsg.Timestamp
// //
// // ServiceTimeSync update by TimeSync, which is get from proxy. // // ServiceTimeSync update by TimeSync, which is get from proxy.
@ -189,8 +189,8 @@ func (ss *searchService) search(searchMessages []*msgstream.TsMsg) error {
// }, // },
// Entities: &entities, // Entities: &entities,
// Distances: make([]float32, 0), // Distances: make([]float32, 0),
// QueryId: searchMsg.ReqId, // QueryId: searchMsg.ReqID,
// ProxyId: clientID, // ProxyID: clientID,
// } // }
// for _, rTmp := range resultsTmp { // for _, rTmp := range resultsTmp {
// for _, res := range rTmp { // for _, res := range rTmp {

View File

@ -66,8 +66,8 @@ package reader
// Uid: int64(i), // Uid: int64(i),
// PartitionTag: "partition0", // PartitionTag: "partition0",
// Timestamp: uint64(i + 1000), // Timestamp: uint64(i + 1000),
// SegmentId: int64(i), // SegmentID: int64(i),
// ChannelId: 0, // ChannelID: 0,
// Op: msgPb.OpType_INSERT, // Op: msgPb.OpType_INSERT,
// ClientId: 0, // ClientId: 0,
// ExtraParams: nil, // ExtraParams: nil,

View File

@ -46,10 +46,10 @@ func TestSegment_newSegment(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -58,7 +58,7 @@ func TestSegment_newSegment(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -96,10 +96,10 @@ func TestSegment_deleteSegment(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -108,7 +108,7 @@ func TestSegment_deleteSegment(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -149,10 +149,10 @@ func TestSegment_getRowCount(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -161,7 +161,7 @@ func TestSegment_getRowCount(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -231,10 +231,10 @@ func TestSegment_getDeletedCount(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -243,7 +243,7 @@ func TestSegment_getDeletedCount(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -320,10 +320,10 @@ func TestSegment_getMemSize(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -332,7 +332,7 @@ func TestSegment_getMemSize(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -403,10 +403,10 @@ func TestSegment_segmentInsert(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -415,7 +415,7 @@ func TestSegment_segmentInsert(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -482,10 +482,10 @@ func TestSegment_segmentDelete(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -494,7 +494,7 @@ func TestSegment_segmentDelete(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -648,10 +648,10 @@ func TestSegment_segmentPreInsert(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -660,7 +660,7 @@ func TestSegment_segmentPreInsert(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)
@ -721,10 +721,10 @@ func TestSegment_segmentPreDelete(t *testing.T) {
} }
collectionMeta := etcdpb.CollectionMeta{ collectionMeta := etcdpb.CollectionMeta{
Id: UniqueID(0), ID: UniqueID(0),
Schema: &schema, Schema: &schema,
CreateTime: Timestamp(0), CreateTime: Timestamp(0),
SegmentIds: []UniqueID{0}, SegmentIDs: []UniqueID{0},
PartitionTags: []string{"default"}, PartitionTags: []string{"default"},
} }
@ -733,7 +733,7 @@ func TestSegment_segmentPreDelete(t *testing.T) {
collection := newCollection(&collectionMeta, collectionMetaBlob) collection := newCollection(&collectionMeta, collectionMetaBlob)
assert.Equal(t, collection.meta.Schema.Name, "collection0") assert.Equal(t, collection.meta.Schema.Name, "collection0")
assert.Equal(t, collection.meta.Id, UniqueID(0)) assert.Equal(t, collection.meta.ID, UniqueID(0))
segmentID := UniqueID(0) segmentID := UniqueID(0)
segment := newSegment(collection, segmentID) segment := newSegment(collection, segmentID)

View File

@ -51,7 +51,7 @@ func (sService *statsService) sendSegmentStatistic() {
stat := internalpb.SegmentStats{ stat := internalpb.SegmentStats{
// TODO: set master pb's segment id type from uint64 to int64 // TODO: set master pb's segment id type from uint64 to int64
SegmentId: segmentID, SegmentID: segmentID,
MemorySize: currentMemSize, MemorySize: currentMemSize,
NumRows: segmentNumOfRows, NumRows: segmentNumOfRows,
} }

View File

@ -40,7 +40,7 @@ package reader
// key2SegMsg := msgPb.Key2SegMsg{ // key2SegMsg := msgPb.Key2SegMsg{
// Uid: int64(i), // Uid: int64(i),
// Timestamp: uint64(i + 1000), // Timestamp: uint64(i + 1000),
// SegmentId: []int64{int64(i)}, // SegmentID: []int64{int64(i)},
// } // }
// node.messageClient.Key2SegMsg = append(node.messageClient.Key2SegMsg, &key2SegMsg) // node.messageClient.Key2SegMsg = append(node.messageClient.Key2SegMsg, &key2SegMsg)
// } // }

View File

@ -14,7 +14,7 @@ type Timestamp = typeutil.Timestamp
// return &msgpb.InsertOrDeleteMsg{ // return &msgpb.InsertOrDeleteMsg{
// CollectionName: collectionName, // CollectionName: collectionName,
// PartitionTag: partitionTag, // PartitionTag: partitionTag,
// SegmentId: UniqueID(entityId / 100), // SegmentID: UniqueID(entityId / 100),
// Uid: UniqueID(entityId), // Uid: UniqueID(entityId),
// Timestamp: Timestamp(entityId), // Timestamp: Timestamp(entityId),
// ClientId: 0, // ClientId: 0,