2021-01-14 14:24:14 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: query_service.proto
|
|
|
|
|
|
|
|
package querypb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
|
2021-01-24 18:02:08 +08:00
|
|
|
datapb "github.com/zilliztech/milvus-distributed/internal/proto/datapb"
|
2021-01-14 14:24:14 +08:00
|
|
|
internalpb2 "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2"
|
2021-01-22 14:28:06 +08:00
|
|
|
milvuspb "github.com/zilliztech/milvus-distributed/internal/proto/milvuspb"
|
2021-02-06 17:37:10 +08:00
|
|
|
schemapb "github.com/zilliztech/milvus-distributed/internal/proto/schemapb"
|
2021-01-14 14:24:14 +08:00
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
type PartitionState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
PartitionState_NotExist PartitionState = 0
|
|
|
|
PartitionState_NotPresent PartitionState = 1
|
2021-01-22 14:28:06 +08:00
|
|
|
PartitionState_OnDisk PartitionState = 2
|
2021-01-14 14:24:14 +08:00
|
|
|
PartitionState_PartialInMemory PartitionState = 3
|
|
|
|
PartitionState_InMemory PartitionState = 4
|
|
|
|
PartitionState_PartialInGPU PartitionState = 5
|
|
|
|
PartitionState_InGPU PartitionState = 6
|
|
|
|
)
|
|
|
|
|
|
|
|
var PartitionState_name = map[int32]string{
|
|
|
|
0: "NotExist",
|
|
|
|
1: "NotPresent",
|
2021-01-22 14:28:06 +08:00
|
|
|
2: "OnDisk",
|
2021-01-14 14:24:14 +08:00
|
|
|
3: "PartialInMemory",
|
|
|
|
4: "InMemory",
|
|
|
|
5: "PartialInGPU",
|
|
|
|
6: "InGPU",
|
|
|
|
}
|
|
|
|
|
|
|
|
var PartitionState_value = map[string]int32{
|
|
|
|
"NotExist": 0,
|
|
|
|
"NotPresent": 1,
|
2021-01-22 14:28:06 +08:00
|
|
|
"OnDisk": 2,
|
2021-01-14 14:24:14 +08:00
|
|
|
"PartialInMemory": 3,
|
|
|
|
"InMemory": 4,
|
|
|
|
"PartialInGPU": 5,
|
|
|
|
"InGPU": 6,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x PartitionState) String() string {
|
|
|
|
return proto.EnumName(PartitionState_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PartitionState) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type RegisterNodeRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
Address *commonpb.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RegisterNodeRequest) Reset() { *m = RegisterNodeRequest{} }
|
|
|
|
func (m *RegisterNodeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RegisterNodeRequest) ProtoMessage() {}
|
|
|
|
func (*RegisterNodeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RegisterNodeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RegisterNodeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RegisterNodeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RegisterNodeRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RegisterNodeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RegisterNodeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RegisterNodeRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *RegisterNodeRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RegisterNodeRequest) GetAddress() *commonpb.Address {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type RegisterNodeResponse struct {
|
2021-01-16 15:31:10 +08:00
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
InitParams *internalpb2.InitParams `protobuf:"bytes,2,opt,name=init_params,json=initParams,proto3" json:"init_params,omitempty"`
|
2021-01-14 14:24:14 +08:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RegisterNodeResponse) Reset() { *m = RegisterNodeResponse{} }
|
|
|
|
func (m *RegisterNodeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RegisterNodeResponse) ProtoMessage() {}
|
|
|
|
func (*RegisterNodeResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RegisterNodeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RegisterNodeResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RegisterNodeResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RegisterNodeResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RegisterNodeResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RegisterNodeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RegisterNodeResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RegisterNodeResponse proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:31:10 +08:00
|
|
|
func (m *RegisterNodeResponse) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func (m *RegisterNodeResponse) GetInitParams() *internalpb2.InitParams {
|
|
|
|
if m != nil {
|
|
|
|
return m.InitParams
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShowCollectionRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowCollectionRequest) Reset() { *m = ShowCollectionRequest{} }
|
|
|
|
func (m *ShowCollectionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ShowCollectionRequest) ProtoMessage() {}
|
|
|
|
func (*ShowCollectionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowCollectionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ShowCollectionRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ShowCollectionRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ShowCollectionRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ShowCollectionRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ShowCollectionRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ShowCollectionRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *ShowCollectionRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowCollectionRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShowCollectionResponse struct {
|
2021-01-16 15:31:10 +08:00
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
CollectionIDs []int64 `protobuf:"varint,2,rep,packed,name=collectionIDs,proto3" json:"collectionIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowCollectionResponse) Reset() { *m = ShowCollectionResponse{} }
|
|
|
|
func (m *ShowCollectionResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ShowCollectionResponse) ProtoMessage() {}
|
|
|
|
func (*ShowCollectionResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowCollectionResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ShowCollectionResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ShowCollectionResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ShowCollectionResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ShowCollectionResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ShowCollectionResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ShowCollectionResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ShowCollectionResponse proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:31:10 +08:00
|
|
|
func (m *ShowCollectionResponse) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func (m *ShowCollectionResponse) GetCollectionIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type LoadCollectionRequest struct {
|
2021-02-06 17:37:10 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
Schema *schemapb.CollectionSchema `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadCollectionRequest) Reset() { *m = LoadCollectionRequest{} }
|
|
|
|
func (m *LoadCollectionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LoadCollectionRequest) ProtoMessage() {}
|
|
|
|
func (*LoadCollectionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{4}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadCollectionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LoadCollectionRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LoadCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LoadCollectionRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LoadCollectionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LoadCollectionRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LoadCollectionRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LoadCollectionRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LoadCollectionRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LoadCollectionRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LoadCollectionRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *LoadCollectionRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadCollectionRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadCollectionRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-02-06 17:37:10 +08:00
|
|
|
func (m *LoadCollectionRequest) GetSchema() *schemapb.CollectionSchema {
|
|
|
|
if m != nil {
|
|
|
|
return m.Schema
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
type ReleaseCollectionRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseCollectionRequest) Reset() { *m = ReleaseCollectionRequest{} }
|
|
|
|
func (m *ReleaseCollectionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ReleaseCollectionRequest) ProtoMessage() {}
|
|
|
|
func (*ReleaseCollectionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseCollectionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ReleaseCollectionRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ReleaseCollectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ReleaseCollectionRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ReleaseCollectionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReleaseCollectionRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReleaseCollectionRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ReleaseCollectionRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ReleaseCollectionRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReleaseCollectionRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ReleaseCollectionRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *ReleaseCollectionRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseCollectionRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseCollectionRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShowPartitionRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowPartitionRequest) Reset() { *m = ShowPartitionRequest{} }
|
|
|
|
func (m *ShowPartitionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ShowPartitionRequest) ProtoMessage() {}
|
|
|
|
func (*ShowPartitionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowPartitionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ShowPartitionRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ShowPartitionRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ShowPartitionRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ShowPartitionRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ShowPartitionRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ShowPartitionRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *ShowPartitionRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowPartitionRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowPartitionRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShowPartitionResponse struct {
|
2021-01-16 15:31:10 +08:00
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
PartitionIDs []int64 `protobuf:"varint,2,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowPartitionResponse) Reset() { *m = ShowPartitionResponse{} }
|
|
|
|
func (m *ShowPartitionResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ShowPartitionResponse) ProtoMessage() {}
|
|
|
|
func (*ShowPartitionResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{7}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ShowPartitionResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ShowPartitionResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ShowPartitionResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ShowPartitionResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ShowPartitionResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ShowPartitionResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ShowPartitionResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ShowPartitionResponse proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:31:10 +08:00
|
|
|
func (m *ShowPartitionResponse) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func (m *ShowPartitionResponse) GetPartitionIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PartitionStates struct {
|
|
|
|
PartitionID int64 `protobuf:"varint,1,opt,name=partitionID,proto3" json:"partitionID,omitempty"`
|
|
|
|
State PartitionState `protobuf:"varint,2,opt,name=state,proto3,enum=milvus.proto.query.PartitionState" json:"state,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStates) Reset() { *m = PartitionStates{} }
|
|
|
|
func (m *PartitionStates) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PartitionStates) ProtoMessage() {}
|
|
|
|
func (*PartitionStates) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{8}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStates) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PartitionStates.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PartitionStates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PartitionStates.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PartitionStates) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PartitionStates.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PartitionStates) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PartitionStates.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PartitionStates) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PartitionStates.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PartitionStates proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PartitionStates) GetPartitionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStates) GetState() PartitionState {
|
|
|
|
if m != nil {
|
|
|
|
return m.State
|
|
|
|
}
|
|
|
|
return PartitionState_NotExist
|
|
|
|
}
|
|
|
|
|
|
|
|
type PartitionStatesRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
PartitionIDs []int64 `protobuf:"varint,4,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesRequest) Reset() { *m = PartitionStatesRequest{} }
|
|
|
|
func (m *PartitionStatesRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PartitionStatesRequest) ProtoMessage() {}
|
|
|
|
func (*PartitionStatesRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{9}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PartitionStatesRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PartitionStatesRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PartitionStatesRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PartitionStatesRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PartitionStatesRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PartitionStatesRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *PartitionStatesRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesRequest) GetPartitionIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PartitionStatesResponse struct {
|
2021-01-16 15:31:10 +08:00
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
PartitionDescriptions []*PartitionStates `protobuf:"bytes,2,rep,name=partition_descriptions,json=partitionDescriptions,proto3" json:"partition_descriptions,omitempty"`
|
2021-01-14 14:24:14 +08:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesResponse) Reset() { *m = PartitionStatesResponse{} }
|
|
|
|
func (m *PartitionStatesResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PartitionStatesResponse) ProtoMessage() {}
|
|
|
|
func (*PartitionStatesResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{10}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PartitionStatesResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PartitionStatesResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PartitionStatesResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PartitionStatesResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PartitionStatesResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PartitionStatesResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PartitionStatesResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PartitionStatesResponse proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:31:10 +08:00
|
|
|
func (m *PartitionStatesResponse) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func (m *PartitionStatesResponse) GetPartitionDescriptions() []*PartitionStates {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionDescriptions
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
type LoadPartitionRequest struct {
|
2021-02-06 17:37:10 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
PartitionIDs []int64 `protobuf:"varint,4,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
|
|
|
Schema *schemapb.CollectionSchema `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) Reset() { *m = LoadPartitionRequest{} }
|
|
|
|
func (m *LoadPartitionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LoadPartitionRequest) ProtoMessage() {}
|
|
|
|
func (*LoadPartitionRequest) Descriptor() ([]byte, []int) {
|
2021-01-14 14:24:14 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{11}
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LoadPartitionRequest.Unmarshal(m, b)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LoadPartitionRequest.Marshal(b, m, deterministic)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LoadPartitionRequest.Merge(m, src)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LoadPartitionRequest.Size(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LoadPartitionRequest.DiscardUnknown(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
var xxx_messageInfo_LoadPartitionRequest proto.InternalMessageInfo
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *LoadPartitionRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) GetDbID() int64 {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) GetCollectionID() int64 {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *LoadPartitionRequest) GetPartitionIDs() []int64 {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.PartitionIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-06 17:37:10 +08:00
|
|
|
func (m *LoadPartitionRequest) GetSchema() *schemapb.CollectionSchema {
|
|
|
|
if m != nil {
|
|
|
|
return m.Schema
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
type ReleasePartitionRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
PartitionIDs []int64 `protobuf:"varint,4,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleasePartitionRequest) Reset() { *m = ReleasePartitionRequest{} }
|
|
|
|
func (m *ReleasePartitionRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ReleasePartitionRequest) ProtoMessage() {}
|
|
|
|
func (*ReleasePartitionRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{12}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleasePartitionRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ReleasePartitionRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ReleasePartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ReleasePartitionRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ReleasePartitionRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReleasePartitionRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReleasePartitionRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ReleasePartitionRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ReleasePartitionRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReleasePartitionRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ReleasePartitionRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *ReleasePartitionRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleasePartitionRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleasePartitionRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleasePartitionRequest) GetPartitionIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateQueryChannelResponse struct {
|
2021-01-16 15:31:10 +08:00
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
RequestChannel string `protobuf:"bytes,2,opt,name=request_channel,json=requestChannel,proto3" json:"request_channel,omitempty"`
|
|
|
|
ResultChannel string `protobuf:"bytes,3,opt,name=result_channel,json=resultChannel,proto3" json:"result_channel,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateQueryChannelResponse) Reset() { *m = CreateQueryChannelResponse{} }
|
|
|
|
func (m *CreateQueryChannelResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CreateQueryChannelResponse) ProtoMessage() {}
|
|
|
|
func (*CreateQueryChannelResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{13}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateQueryChannelResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CreateQueryChannelResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CreateQueryChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CreateQueryChannelResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *CreateQueryChannelResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateQueryChannelResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CreateQueryChannelResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateQueryChannelResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CreateQueryChannelResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateQueryChannelResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateQueryChannelResponse proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:31:10 +08:00
|
|
|
func (m *CreateQueryChannelResponse) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func (m *CreateQueryChannelResponse) GetRequestChannel() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.RequestChannel
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateQueryChannelResponse) GetResultChannel() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ResultChannel
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
type AddQueryChannelsRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
RequestChannelID string `protobuf:"bytes,2,opt,name=request_channelID,json=requestChannelID,proto3" json:"request_channelID,omitempty"`
|
|
|
|
ResultChannelID string `protobuf:"bytes,3,opt,name=result_channelID,json=resultChannelID,proto3" json:"result_channelID,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) Reset() { *m = AddQueryChannelsRequest{} }
|
|
|
|
func (m *AddQueryChannelsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*AddQueryChannelsRequest) ProtoMessage() {}
|
|
|
|
func (*AddQueryChannelsRequest) Descriptor() ([]byte, []int) {
|
2021-01-14 14:24:14 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{14}
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_AddQueryChannelsRequest.Unmarshal(m, b)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_AddQueryChannelsRequest.Marshal(b, m, deterministic)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AddQueryChannelsRequest.Merge(m, src)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_AddQueryChannelsRequest.Size(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AddQueryChannelsRequest.DiscardUnknown(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
var xxx_messageInfo_AddQueryChannelsRequest proto.InternalMessageInfo
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *AddQueryChannelsRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) GetRequestChannelID() string {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.RequestChannelID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *AddQueryChannelsRequest) GetResultChannelID() string {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.ResultChannelID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
type RemoveQueryChannelsRequest struct {
|
2021-01-16 15:31:10 +08:00
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
RequestChannelID string `protobuf:"bytes,3,opt,name=request_channelID,json=requestChannelID,proto3" json:"request_channelID,omitempty"`
|
|
|
|
ResultChannelID string `protobuf:"bytes,4,opt,name=result_channelID,json=resultChannelID,proto3" json:"result_channelID,omitempty"`
|
2021-01-16 15:06:19 +08:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) Reset() { *m = RemoveQueryChannelsRequest{} }
|
|
|
|
func (m *RemoveQueryChannelsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RemoveQueryChannelsRequest) ProtoMessage() {}
|
|
|
|
func (*RemoveQueryChannelsRequest) Descriptor() ([]byte, []int) {
|
2021-01-14 14:24:14 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{15}
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RemoveQueryChannelsRequest.Unmarshal(m, b)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RemoveQueryChannelsRequest.Marshal(b, m, deterministic)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RemoveQueryChannelsRequest.Merge(m, src)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RemoveQueryChannelsRequest.Size(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RemoveQueryChannelsRequest.DiscardUnknown(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
var xxx_messageInfo_RemoveQueryChannelsRequest proto.InternalMessageInfo
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-01-16 15:31:10 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) GetRequestChannelID() string {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.RequestChannelID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *RemoveQueryChannelsRequest) GetResultChannelID() string {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.ResultChannelID
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
type WatchDmChannelsRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
ChannelIDs []string `protobuf:"bytes,2,rep,name=channelIDs,proto3" json:"channelIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) Reset() { *m = WatchDmChannelsRequest{} }
|
|
|
|
func (m *WatchDmChannelsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*WatchDmChannelsRequest) ProtoMessage() {}
|
|
|
|
func (*WatchDmChannelsRequest) Descriptor() ([]byte, []int) {
|
2021-01-14 14:24:14 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{16}
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_WatchDmChannelsRequest.Unmarshal(m, b)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_WatchDmChannelsRequest.Marshal(b, m, deterministic)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_WatchDmChannelsRequest.Merge(m, src)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_WatchDmChannelsRequest.Size(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_WatchDmChannelsRequest.DiscardUnknown(m)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
var xxx_messageInfo_WatchDmChannelsRequest proto.InternalMessageInfo
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *WatchDmChannelsRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (m *WatchDmChannelsRequest) GetChannelIDs() []string {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.ChannelIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type LoadSegmentRequest struct {
|
2021-02-04 17:47:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
PartitionID int64 `protobuf:"varint,4,opt,name=partitionID,proto3" json:"partitionID,omitempty"`
|
|
|
|
SegmentIDs []int64 `protobuf:"varint,5,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"`
|
|
|
|
FieldIDs []int64 `protobuf:"varint,6,rep,packed,name=fieldIDs,proto3" json:"fieldIDs,omitempty"`
|
|
|
|
SegmentStates []*datapb.SegmentStateInfo `protobuf:"bytes,7,rep,name=segment_states,json=segmentStates,proto3" json:"segment_states,omitempty"`
|
2021-02-07 09:30:48 +08:00
|
|
|
Schema *schemapb.CollectionSchema `protobuf:"bytes,8,opt,name=schema,proto3" json:"schema,omitempty"`
|
2021-02-04 17:47:19 +08:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadSegmentRequest) Reset() { *m = LoadSegmentRequest{} }
|
|
|
|
func (m *LoadSegmentRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LoadSegmentRequest) ProtoMessage() {}
|
|
|
|
func (*LoadSegmentRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{17}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadSegmentRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LoadSegmentRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LoadSegmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LoadSegmentRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LoadSegmentRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LoadSegmentRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LoadSegmentRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LoadSegmentRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LoadSegmentRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LoadSegmentRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LoadSegmentRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *LoadSegmentRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadSegmentRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadSegmentRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-01-20 09:36:50 +08:00
|
|
|
func (m *LoadSegmentRequest) GetPartitionID() int64 {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
2021-01-20 09:36:50 +08:00
|
|
|
return m.PartitionID
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
2021-01-20 09:36:50 +08:00
|
|
|
return 0
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadSegmentRequest) GetSegmentIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SegmentIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoadSegmentRequest) GetFieldIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FieldIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-04 17:47:19 +08:00
|
|
|
func (m *LoadSegmentRequest) GetSegmentStates() []*datapb.SegmentStateInfo {
|
2021-01-24 18:02:08 +08:00
|
|
|
if m != nil {
|
2021-02-04 17:47:19 +08:00
|
|
|
return m.SegmentStates
|
2021-01-24 18:02:08 +08:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-07 09:30:48 +08:00
|
|
|
func (m *LoadSegmentRequest) GetSchema() *schemapb.CollectionSchema {
|
|
|
|
if m != nil {
|
|
|
|
return m.Schema
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
type ReleaseSegmentRequest struct {
|
2021-01-16 15:06:19 +08:00
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
DbID int64 `protobuf:"varint,2,opt,name=dbID,proto3" json:"dbID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,3,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
PartitionIDs []int64 `protobuf:"varint,4,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
|
|
|
|
SegmentIDs []int64 `protobuf:"varint,5,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseSegmentRequest) Reset() { *m = ReleaseSegmentRequest{} }
|
|
|
|
func (m *ReleaseSegmentRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ReleaseSegmentRequest) ProtoMessage() {}
|
|
|
|
func (*ReleaseSegmentRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{18}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseSegmentRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ReleaseSegmentRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ReleaseSegmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ReleaseSegmentRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ReleaseSegmentRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReleaseSegmentRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReleaseSegmentRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ReleaseSegmentRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ReleaseSegmentRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReleaseSegmentRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ReleaseSegmentRequest proto.InternalMessageInfo
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
func (m *ReleaseSegmentRequest) GetBase() *commonpb.MsgBase {
|
2021-01-14 14:24:14 +08:00
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseSegmentRequest) GetDbID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.DbID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseSegmentRequest) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseSegmentRequest) GetPartitionIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReleaseSegmentRequest) GetSegmentIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SegmentIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-04 11:40:14 +08:00
|
|
|
type SegmentInfo struct {
|
|
|
|
SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"`
|
|
|
|
CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
|
|
|
|
PartitionID int64 `protobuf:"varint,3,opt,name=partitionID,proto3" json:"partitionID,omitempty"`
|
|
|
|
MemSize int64 `protobuf:"varint,4,opt,name=mem_size,json=memSize,proto3" json:"mem_size,omitempty"`
|
|
|
|
NumRows int64 `protobuf:"varint,5,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"`
|
|
|
|
IndexName string `protobuf:"bytes,6,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"`
|
|
|
|
IndexID int64 `protobuf:"varint,7,opt,name=indexID,proto3" json:"indexID,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) Reset() { *m = SegmentInfo{} }
|
|
|
|
func (m *SegmentInfo) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SegmentInfo) ProtoMessage() {}
|
|
|
|
func (*SegmentInfo) Descriptor() ([]byte, []int) {
|
2021-02-26 15:26:21 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{19}
|
2021-02-04 11:40:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SegmentInfo.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SegmentInfo.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfo) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SegmentInfo.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfo) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SegmentInfo.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfo) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SegmentInfo.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SegmentInfo proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetSegmentID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SegmentID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetCollectionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CollectionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetPartitionID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.PartitionID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetMemSize() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.MemSize
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetNumRows() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.NumRows
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetIndexName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.IndexName
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfo) GetIndexID() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.IndexID
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type SegmentInfoRequest struct {
|
|
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
|
|
SegmentIDs []int64 `protobuf:"varint,2,rep,packed,name=segmentIDs,proto3" json:"segmentIDs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfoRequest) Reset() { *m = SegmentInfoRequest{} }
|
|
|
|
func (m *SegmentInfoRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SegmentInfoRequest) ProtoMessage() {}
|
|
|
|
func (*SegmentInfoRequest) Descriptor() ([]byte, []int) {
|
2021-02-26 15:26:21 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{20}
|
2021-02-04 11:40:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfoRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SegmentInfoRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SegmentInfoRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SegmentInfoRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SegmentInfoRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SegmentInfoRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SegmentInfoRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SegmentInfoRequest) GetBase() *commonpb.MsgBase {
|
|
|
|
if m != nil {
|
|
|
|
return m.Base
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfoRequest) GetSegmentIDs() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SegmentIDs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type SegmentInfoResponse struct {
|
|
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
Infos []*SegmentInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfoResponse) Reset() { *m = SegmentInfoResponse{} }
|
|
|
|
func (m *SegmentInfoResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SegmentInfoResponse) ProtoMessage() {}
|
|
|
|
func (*SegmentInfoResponse) Descriptor() ([]byte, []int) {
|
2021-02-26 15:26:21 +08:00
|
|
|
return fileDescriptor_5fcb6756dc1afb8d, []int{21}
|
2021-02-04 11:40:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfoResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SegmentInfoResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SegmentInfoResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SegmentInfoResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SegmentInfoResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SegmentInfoResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SegmentInfoResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SegmentInfoResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SegmentInfoResponse) GetStatus() *commonpb.Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SegmentInfoResponse) GetInfos() []*SegmentInfo {
|
|
|
|
if m != nil {
|
|
|
|
return m.Infos
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("milvus.proto.query.PartitionState", PartitionState_name, PartitionState_value)
|
|
|
|
proto.RegisterType((*RegisterNodeRequest)(nil), "milvus.proto.query.RegisterNodeRequest")
|
|
|
|
proto.RegisterType((*RegisterNodeResponse)(nil), "milvus.proto.query.RegisterNodeResponse")
|
|
|
|
proto.RegisterType((*ShowCollectionRequest)(nil), "milvus.proto.query.ShowCollectionRequest")
|
|
|
|
proto.RegisterType((*ShowCollectionResponse)(nil), "milvus.proto.query.ShowCollectionResponse")
|
|
|
|
proto.RegisterType((*LoadCollectionRequest)(nil), "milvus.proto.query.LoadCollectionRequest")
|
|
|
|
proto.RegisterType((*ReleaseCollectionRequest)(nil), "milvus.proto.query.ReleaseCollectionRequest")
|
|
|
|
proto.RegisterType((*ShowPartitionRequest)(nil), "milvus.proto.query.ShowPartitionRequest")
|
|
|
|
proto.RegisterType((*ShowPartitionResponse)(nil), "milvus.proto.query.ShowPartitionResponse")
|
|
|
|
proto.RegisterType((*PartitionStates)(nil), "milvus.proto.query.PartitionStates")
|
|
|
|
proto.RegisterType((*PartitionStatesRequest)(nil), "milvus.proto.query.PartitionStatesRequest")
|
|
|
|
proto.RegisterType((*PartitionStatesResponse)(nil), "milvus.proto.query.PartitionStatesResponse")
|
2021-01-15 15:28:54 +08:00
|
|
|
proto.RegisterType((*LoadPartitionRequest)(nil), "milvus.proto.query.LoadPartitionRequest")
|
2021-01-14 14:24:14 +08:00
|
|
|
proto.RegisterType((*ReleasePartitionRequest)(nil), "milvus.proto.query.ReleasePartitionRequest")
|
|
|
|
proto.RegisterType((*CreateQueryChannelResponse)(nil), "milvus.proto.query.CreateQueryChannelResponse")
|
2021-01-15 15:28:54 +08:00
|
|
|
proto.RegisterType((*AddQueryChannelsRequest)(nil), "milvus.proto.query.AddQueryChannelsRequest")
|
|
|
|
proto.RegisterType((*RemoveQueryChannelsRequest)(nil), "milvus.proto.query.RemoveQueryChannelsRequest")
|
|
|
|
proto.RegisterType((*WatchDmChannelsRequest)(nil), "milvus.proto.query.WatchDmChannelsRequest")
|
2021-01-14 14:24:14 +08:00
|
|
|
proto.RegisterType((*LoadSegmentRequest)(nil), "milvus.proto.query.LoadSegmentRequest")
|
|
|
|
proto.RegisterType((*ReleaseSegmentRequest)(nil), "milvus.proto.query.ReleaseSegmentRequest")
|
2021-02-04 11:40:14 +08:00
|
|
|
proto.RegisterType((*SegmentInfo)(nil), "milvus.proto.query.SegmentInfo")
|
|
|
|
proto.RegisterType((*SegmentInfoRequest)(nil), "milvus.proto.query.SegmentInfoRequest")
|
|
|
|
proto.RegisterType((*SegmentInfoResponse)(nil), "milvus.proto.query.SegmentInfoResponse")
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("query_service.proto", fileDescriptor_5fcb6756dc1afb8d) }
|
|
|
|
|
|
|
|
var fileDescriptor_5fcb6756dc1afb8d = []byte{
|
2021-03-05 20:47:43 +08:00
|
|
|
// 1354 bytes of a gzipped FileDescriptorProto
|
2021-02-26 15:26:21 +08:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdf, 0x6f, 0x1b, 0xc5,
|
2021-03-05 20:47:43 +08:00
|
|
|
0x13, 0xcf, 0xf9, 0x67, 0x3c, 0x71, 0x6d, 0x77, 0xf3, 0xa3, 0xfe, 0xde, 0xb7, 0x94, 0x72, 0xd0,
|
|
|
|
0x36, 0x6d, 0xc1, 0x41, 0xa9, 0x40, 0xbc, 0x20, 0x94, 0xc4, 0x55, 0x64, 0x44, 0x43, 0x38, 0xa7,
|
2021-02-26 15:26:21 +08:00
|
|
|
0xaa, 0x08, 0x54, 0xe6, 0x7c, 0xb7, 0xb1, 0xb7, 0xf5, 0xdd, 0xb9, 0xb7, 0xeb, 0xa4, 0xc9, 0x0b,
|
2021-03-05 20:47:43 +08:00
|
|
|
0x20, 0xf1, 0x88, 0xc4, 0x0b, 0xff, 0x00, 0x42, 0x02, 0x89, 0xbf, 0x82, 0x17, 0xfe, 0x0a, 0x5e,
|
|
|
|
0x90, 0x78, 0xe0, 0xdf, 0x40, 0xb7, 0xb7, 0x3e, 0xdf, 0x9d, 0xcf, 0x39, 0x37, 0x6e, 0x1a, 0xde,
|
|
|
|
0xbc, 0x73, 0xb3, 0xf3, 0xf9, 0xcc, 0xec, 0xec, 0xec, 0x8c, 0x61, 0xf1, 0xd9, 0x00, 0x3b, 0xc7,
|
|
|
|
0x2d, 0x8a, 0x9d, 0x43, 0xa2, 0xe3, 0x5a, 0xdf, 0xb1, 0x99, 0x8d, 0x90, 0x49, 0x7a, 0x87, 0x03,
|
|
|
|
0xea, 0xad, 0x6a, 0x5c, 0x43, 0x2e, 0xea, 0xb6, 0x69, 0xda, 0x96, 0x27, 0x93, 0x8b, 0x41, 0x0d,
|
|
|
|
0xb9, 0x44, 0x2c, 0x86, 0x1d, 0x4b, 0xeb, 0x89, 0x35, 0x32, 0x34, 0xa6, 0x85, 0x6d, 0xca, 0x45,
|
|
|
|
0xaa, 0x77, 0xb1, 0xa9, 0x79, 0x2b, 0xe5, 0x6b, 0x58, 0x54, 0x71, 0x87, 0x50, 0x86, 0x9d, 0x1d,
|
|
|
|
0xdb, 0xc0, 0x2a, 0x7e, 0x36, 0xc0, 0x94, 0xa1, 0x77, 0x21, 0xd3, 0xd6, 0x28, 0xae, 0x4a, 0xd7,
|
|
|
|
0xa5, 0xd5, 0x85, 0xf5, 0xab, 0xb5, 0x10, 0x0f, 0x41, 0xe0, 0x01, 0xed, 0x6c, 0x6a, 0x14, 0xab,
|
|
|
|
0x5c, 0x13, 0xbd, 0x0f, 0x79, 0xcd, 0x30, 0x1c, 0x4c, 0x69, 0x35, 0x75, 0xca, 0xa6, 0x0d, 0x4f,
|
|
|
|
0x47, 0x1d, 0x2a, 0x2b, 0x3f, 0x48, 0xb0, 0x14, 0x66, 0x40, 0xfb, 0xb6, 0x45, 0x31, 0xba, 0x07,
|
|
|
|
0x39, 0xca, 0x34, 0x36, 0xa0, 0x82, 0xc4, 0xff, 0x63, 0xed, 0x35, 0xb9, 0x8a, 0x2a, 0x54, 0xd1,
|
|
|
|
0x26, 0x2c, 0x10, 0x8b, 0xb0, 0x56, 0x5f, 0x73, 0x34, 0x73, 0xc8, 0xe4, 0x8d, 0xf0, 0x4e, 0x3f,
|
|
|
|
0x46, 0x0d, 0x8b, 0xb0, 0x5d, 0xae, 0xa8, 0x02, 0xf1, 0x7f, 0x2b, 0x8f, 0x61, 0xb9, 0xd9, 0xb5,
|
|
|
|
0x8f, 0xb6, 0xec, 0x5e, 0x0f, 0xeb, 0x8c, 0xd8, 0xd6, 0xd9, 0x83, 0x82, 0x20, 0x63, 0xb4, 0x1b,
|
|
|
|
0x75, 0xce, 0x23, 0xad, 0xf2, 0xdf, 0x0a, 0x85, 0x95, 0xa8, 0xf9, 0x59, 0x3c, 0x7e, 0x0b, 0x2e,
|
|
|
|
0xe9, 0xbe, 0xa9, 0x46, 0xdd, 0xf5, 0x39, 0xbd, 0x9a, 0x56, 0xc3, 0x42, 0xe5, 0x77, 0x09, 0x96,
|
|
|
|
0x3f, 0xb1, 0x35, 0xe3, 0x9c, 0x9c, 0x42, 0x0a, 0x14, 0x83, 0x80, 0xd5, 0x34, 0xff, 0x16, 0x92,
|
|
|
|
0xa1, 0x0f, 0x21, 0xe7, 0xa5, 0x5e, 0x35, 0xc3, 0xb1, 0x6e, 0x84, 0xb1, 0x44, 0x5a, 0x8e, 0x18,
|
|
|
|
0x36, 0xb9, 0x40, 0x15, 0x9b, 0x94, 0xef, 0x24, 0xa8, 0xaa, 0xb8, 0x87, 0x35, 0x8a, 0x2f, 0xd0,
|
|
|
|
0x0b, 0xe5, 0x1b, 0x09, 0x96, 0xdc, 0xf3, 0xdb, 0xd5, 0x1c, 0x46, 0x2e, 0x86, 0x42, 0xdf, 0x4b,
|
|
|
|
0xd0, 0x00, 0x83, 0x59, 0x12, 0x48, 0x81, 0x62, 0x7f, 0x68, 0x69, 0x94, 0x3f, 0x21, 0x99, 0x62,
|
|
|
|
0x42, 0xd9, 0x47, 0x73, 0xb7, 0x63, 0x8a, 0xae, 0xc3, 0x42, 0x40, 0x85, 0x03, 0xa6, 0xd5, 0xa0,
|
|
|
|
0x08, 0x7d, 0x00, 0x59, 0x17, 0x02, 0x73, 0xff, 0x4a, 0xeb, 0x4a, 0x6d, 0xbc, 0x98, 0xd5, 0xc2,
|
|
|
|
0x56, 0x55, 0x6f, 0x83, 0xf2, 0x8b, 0x04, 0x2b, 0x11, 0xbc, 0x57, 0x9f, 0xae, 0xd1, 0xb8, 0x64,
|
|
|
|
0x62, 0xe2, 0xf2, 0x9b, 0x04, 0x57, 0xc6, 0x88, 0xce, 0x72, 0x18, 0xfb, 0xb0, 0xe2, 0x03, 0xb4,
|
|
|
|
0x0c, 0x4c, 0x75, 0x87, 0xf4, 0xdd, 0xdf, 0xde, 0xb1, 0x2c, 0xac, 0xbf, 0x99, 0x1c, 0x44, 0xaa,
|
|
|
|
0x2e, 0xfb, 0x26, 0xea, 0x01, 0x0b, 0xca, 0xdf, 0x12, 0x2c, 0xb9, 0x35, 0xe0, 0xe2, 0x32, 0x77,
|
|
|
|
0x9a, 0x98, 0x06, 0xca, 0x44, 0xf6, 0x2c, 0x65, 0xe2, 0x57, 0x09, 0xae, 0x88, 0x32, 0xf1, 0xdf,
|
|
|
|
0x76, 0x54, 0xf9, 0x49, 0x02, 0x79, 0xcb, 0xc1, 0x1a, 0xc3, 0x9f, 0xb9, 0xc7, 0xb8, 0xd5, 0xd5,
|
|
|
|
0x2c, 0x0b, 0xf7, 0x66, 0xcb, 0x9f, 0x5b, 0x50, 0x76, 0x3c, 0x67, 0x5b, 0xba, 0x67, 0x8f, 0x53,
|
|
|
|
0x2f, 0xa8, 0x25, 0x21, 0x16, 0x28, 0xe8, 0x06, 0x94, 0x1c, 0x4c, 0x07, 0xbd, 0x91, 0x5e, 0x9a,
|
|
|
|
0xeb, 0x5d, 0xf2, 0xa4, 0x42, 0x4d, 0xf9, 0x59, 0x82, 0x2b, 0x1b, 0x86, 0x11, 0x24, 0x38, 0xc3,
|
|
|
|
0x55, 0xbc, 0x0b, 0x97, 0x23, 0xec, 0x44, 0x68, 0x0b, 0x6a, 0x25, 0xcc, 0xaf, 0x51, 0x47, 0xb7,
|
|
|
|
0xa1, 0x12, 0x66, 0x28, 0x42, 0x5d, 0x50, 0xcb, 0x21, 0x8e, 0x8d, 0xba, 0xf2, 0xa7, 0x04, 0xb2,
|
|
|
|
0x8a, 0x4d, 0xfb, 0x10, 0xc7, 0x12, 0x3d, 0x53, 0x24, 0x87, 0xde, 0xa5, 0x66, 0xf3, 0x2e, 0xfd,
|
|
|
|
0x02, 0xde, 0x65, 0xe2, 0xbd, 0x7b, 0x02, 0x2b, 0x8f, 0x34, 0xa6, 0x77, 0xeb, 0xe6, 0xec, 0x27,
|
|
|
|
0x70, 0x0d, 0xc0, 0xc7, 0xf3, 0x6a, 0x4a, 0x41, 0x0d, 0x48, 0x94, 0x7f, 0x52, 0x80, 0xdc, 0x1a,
|
|
|
|
0xd1, 0xc4, 0x1d, 0x13, 0x5b, 0xec, 0xd5, 0x5f, 0x9c, 0xc8, 0xb3, 0x92, 0x19, 0x7f, 0x56, 0xae,
|
|
|
|
0x01, 0x50, 0x8f, 0x9d, 0xeb, 0x42, 0x96, 0x5f, 0xac, 0x80, 0x04, 0xc9, 0x30, 0x7f, 0x40, 0x70,
|
|
|
|
0xcf, 0x70, 0xbf, 0xe6, 0xf8, 0x57, 0x7f, 0x8d, 0x3e, 0x86, 0x92, 0xd0, 0x6c, 0xf1, 0x97, 0x86,
|
|
|
|
0x56, 0xf3, 0x71, 0x65, 0xd5, 0xed, 0x9a, 0x6b, 0x22, 0x04, 0xbc, 0xa6, 0x36, 0xac, 0x03, 0x5b,
|
|
|
|
0xbd, 0x44, 0x03, 0x92, 0x60, 0x9d, 0x9a, 0x3f, 0x4b, 0x9d, 0xfa, 0x43, 0x82, 0x65, 0x51, 0xa7,
|
|
|
|
0x2e, 0x2c, 0xd8, 0xd3, 0x94, 0xe3, 0x84, 0x70, 0x2b, 0x7f, 0x49, 0xb0, 0x20, 0x1c, 0x70, 0xa3,
|
|
|
|
0x84, 0xae, 0x42, 0xc1, 0xff, 0x2a, 0xba, 0x82, 0x91, 0x60, 0x8c, 0x55, 0x2a, 0x39, 0x05, 0xd2,
|
|
|
|
0xe3, 0x29, 0xf0, 0x3f, 0x98, 0x37, 0xb1, 0xd9, 0xa2, 0xe4, 0x04, 0x8b, 0x0c, 0xc9, 0x9b, 0xd8,
|
|
|
|
0x6c, 0x92, 0x13, 0xec, 0x7e, 0xb2, 0x06, 0x66, 0xcb, 0xb1, 0x8f, 0x28, 0x7f, 0x3f, 0xd2, 0x6a,
|
|
|
|
0xde, 0x1a, 0x98, 0xaa, 0x7d, 0x44, 0xd1, 0x6b, 0x00, 0xc4, 0x32, 0xf0, 0xf3, 0x96, 0xa5, 0x99,
|
|
|
|
0xb8, 0x9a, 0xe3, 0x97, 0xad, 0xc0, 0x25, 0x3b, 0x9a, 0x89, 0x51, 0x15, 0xf2, 0x7c, 0xd1, 0xa8,
|
|
|
|
0x57, 0xf3, 0xde, 0x46, 0xb1, 0x54, 0x0e, 0x00, 0x05, 0x3c, 0x9c, 0xe9, 0xf2, 0x05, 0x42, 0x99,
|
|
|
|
0x1a, 0x0b, 0xe5, 0xb7, 0x12, 0x2c, 0x86, 0x80, 0x66, 0x79, 0x09, 0xde, 0x83, 0x2c, 0xb1, 0x0e,
|
|
|
|
0xec, 0x61, 0xe3, 0xf0, 0x7a, 0x5c, 0xe3, 0x10, 0x04, 0xf3, 0xb4, 0xef, 0x9c, 0x40, 0x29, 0xdc,
|
|
|
|
0x4e, 0xa0, 0x22, 0xcc, 0xef, 0xd8, 0xec, 0xfe, 0x73, 0x42, 0x59, 0x65, 0x0e, 0x95, 0x00, 0x76,
|
|
|
|
0x6c, 0xb6, 0xeb, 0x60, 0x8a, 0x2d, 0x56, 0x91, 0x10, 0x40, 0xee, 0x53, 0xab, 0x4e, 0xe8, 0xd3,
|
|
|
|
0x4a, 0x0a, 0x2d, 0x8a, 0x2e, 0x51, 0xeb, 0x35, 0xac, 0x07, 0xd8, 0xb4, 0x9d, 0xe3, 0x4a, 0xda,
|
|
|
|
0xdd, 0xee, 0xaf, 0x32, 0xa8, 0x02, 0x45, 0x5f, 0x65, 0x7b, 0xf7, 0x61, 0x25, 0x8b, 0x0a, 0x90,
|
|
|
|
0xf5, 0x7e, 0xe6, 0xd6, 0xbf, 0x07, 0x28, 0xf2, 0x02, 0xde, 0xf4, 0x06, 0x56, 0xa4, 0x43, 0x31,
|
|
|
|
0x38, 0x1a, 0xa2, 0x5b, 0x71, 0x4e, 0xc4, 0x8c, 0xaf, 0xf2, 0x6a, 0xb2, 0xa2, 0x17, 0x5b, 0x65,
|
|
|
|
0x0e, 0x3d, 0x81, 0x72, 0x78, 0x1e, 0xa3, 0xe8, 0x76, 0x6c, 0xb0, 0xe2, 0x66, 0x42, 0xf9, 0xce,
|
|
|
|
0x34, 0xaa, 0x3e, 0x56, 0x07, 0x4a, 0xa1, 0xce, 0x9d, 0xa2, 0xd5, 0x49, 0xfb, 0xa3, 0xcd, 0x8b,
|
|
|
|
0x7c, 0x7b, 0x0a, 0x4d, 0x1f, 0xe8, 0x73, 0x28, 0x85, 0x5a, 0xbd, 0x09, 0x40, 0x71, 0xed, 0xa0,
|
|
|
|
0x7c, 0x5a, 0x7a, 0x29, 0x73, 0xa8, 0x05, 0x97, 0xa3, 0xfd, 0x15, 0x45, 0x77, 0xe3, 0x03, 0x1e,
|
|
|
|
0xdb, 0x86, 0x25, 0x01, 0xec, 0x7b, 0xdc, 0x47, 0x01, 0x8c, 0x3f, 0x8f, 0xd8, 0x71, 0x36, 0xc9,
|
|
|
|
0xf6, 0x57, 0x3e, 0xf9, 0x80, 0xf9, 0xb7, 0x4f, 0x21, 0xff, 0xc2, 0x08, 0x6d, 0x40, 0xe3, 0x4d,
|
|
|
|
0x1d, 0x92, 0x63, 0x37, 0xdd, 0x37, 0xfb, 0xec, 0x58, 0xae, 0xc5, 0xc1, 0x4f, 0x6e, 0x0c, 0x95,
|
|
|
|
0x39, 0xf4, 0x08, 0xd0, 0x36, 0x66, 0x7b, 0xc4, 0xc4, 0x7b, 0x44, 0x7f, 0x3a, 0x0d, 0x46, 0xe4,
|
|
|
|
0x81, 0x13, 0x8b, 0x26, 0x73, 0x88, 0xd5, 0x09, 0xa5, 0xcd, 0xd2, 0x36, 0xe6, 0x0f, 0x1c, 0xa1,
|
|
|
|
0x8c, 0xe8, 0xf4, 0x25, 0x9a, 0xb6, 0x39, 0xe7, 0xe8, 0x14, 0x79, 0x67, 0x9a, 0x79, 0x46, 0x04,
|
|
|
|
0xfe, 0xee, 0x54, 0xba, 0x3e, 0xe0, 0x3e, 0x07, 0xdc, 0xb2, 0xcd, 0xbe, 0x6d, 0x8d, 0x5e, 0xed,
|
|
|
|
0xd3, 0x3c, 0xb9, 0x39, 0xe1, 0x7f, 0xa2, 0x88, 0x0d, 0x65, 0x0e, 0xe9, 0x50, 0x72, 0xe3, 0x14,
|
|
|
|
0x78, 0xf6, 0x6e, 0x26, 0xd5, 0x57, 0xe1, 0xc4, 0xad, 0x44, 0xbd, 0xa1, 0x03, 0xeb, 0x3f, 0xce,
|
|
|
|
0x43, 0x81, 0x27, 0x00, 0xaf, 0x7d, 0xe7, 0x76, 0xe6, 0x7b, 0x50, 0x16, 0x67, 0xfe, 0x32, 0x8f,
|
|
|
|
0xfb, 0x3c, 0xa3, 0xff, 0x18, 0xca, 0x91, 0x99, 0x24, 0xbe, 0xfe, 0x4c, 0x18, 0x5c, 0x92, 0x6e,
|
|
|
|
0xb0, 0x0e, 0x68, 0x7c, 0x98, 0x40, 0xb5, 0xf8, 0x22, 0x31, 0x69, 0xe8, 0x48, 0x02, 0xf9, 0x12,
|
|
|
|
0xca, 0x91, 0xa6, 0x3e, 0xfe, 0x2e, 0xc4, 0x77, 0xfe, 0x49, 0xd6, 0x1f, 0x42, 0x31, 0xd0, 0xc5,
|
|
|
|
0xd3, 0xf8, 0xec, 0x1c, 0xef, 0xf3, 0x2f, 0xbe, 0x7a, 0x9e, 0xfb, 0xe3, 0xf2, 0x05, 0x94, 0xc3,
|
|
|
|
0x5d, 0xf7, 0x84, 0xd7, 0x3e, 0xb6, 0x35, 0x4f, 0xce, 0x9c, 0xf3, 0x2f, 0x0b, 0x9b, 0x1b, 0xfb,
|
|
|
|
0x1f, 0x75, 0x08, 0xeb, 0x0e, 0xda, 0x2e, 0xfc, 0xda, 0x09, 0xe9, 0xf5, 0xc8, 0x09, 0xc3, 0x7a,
|
|
|
|
0x77, 0xcd, 0xb3, 0xf0, 0x8e, 0x41, 0x28, 0x73, 0x48, 0x7b, 0xc0, 0xb0, 0xb1, 0x36, 0xbc, 0x44,
|
|
|
|
0x6b, 0xdc, 0xec, 0x1a, 0x37, 0xdb, 0x6f, 0xb7, 0x73, 0x7c, 0x79, 0xef, 0xdf, 0x00, 0x00, 0x00,
|
|
|
|
0xff, 0xff, 0x3a, 0x02, 0xac, 0xa7, 0x74, 0x18, 0x00, 0x00,
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// QueryServiceClient is the client API for QueryService service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type QueryServiceClient interface {
|
|
|
|
RegisterNode(ctx context.Context, in *RegisterNodeRequest, opts ...grpc.CallOption) (*RegisterNodeResponse, error)
|
|
|
|
ShowCollections(ctx context.Context, in *ShowCollectionRequest, opts ...grpc.CallOption) (*ShowCollectionResponse, error)
|
|
|
|
ShowPartitions(ctx context.Context, in *ShowPartitionRequest, opts ...grpc.CallOption) (*ShowPartitionResponse, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
LoadPartitions(ctx context.Context, in *LoadPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
2021-01-14 14:24:14 +08:00
|
|
|
ReleasePartitions(ctx context.Context, in *ReleasePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
LoadCollection(ctx context.Context, in *LoadCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
|
|
ReleaseCollection(ctx context.Context, in *ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
2021-01-14 14:24:14 +08:00
|
|
|
CreateQueryChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*CreateQueryChannelResponse, error)
|
2021-01-22 14:28:06 +08:00
|
|
|
GetTimeTickChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
|
|
GetStatisticsChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
GetPartitionStates(ctx context.Context, in *PartitionStatesRequest, opts ...grpc.CallOption) (*PartitionStatesResponse, error)
|
2021-01-26 15:13:20 +08:00
|
|
|
GetComponentStates(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*internalpb2.ComponentStates, error)
|
2021-02-04 11:40:14 +08:00
|
|
|
GetSegmentInfo(ctx context.Context, in *SegmentInfoRequest, opts ...grpc.CallOption) (*SegmentInfoResponse, error)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type queryServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewQueryServiceClient(cc *grpc.ClientConn) QueryServiceClient {
|
|
|
|
return &queryServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryServiceClient) RegisterNode(ctx context.Context, in *RegisterNodeRequest, opts ...grpc.CallOption) (*RegisterNodeResponse, error) {
|
|
|
|
out := new(RegisterNodeResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/RegisterNode", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryServiceClient) ShowCollections(ctx context.Context, in *ShowCollectionRequest, opts ...grpc.CallOption) (*ShowCollectionResponse, error) {
|
|
|
|
out := new(ShowCollectionResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/ShowCollections", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (c *queryServiceClient) ShowPartitions(ctx context.Context, in *ShowPartitionRequest, opts ...grpc.CallOption) (*ShowPartitionResponse, error) {
|
|
|
|
out := new(ShowPartitionResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/ShowPartitions", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryServiceClient) LoadPartitions(ctx context.Context, in *LoadPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/LoadPartitions", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryServiceClient) ReleasePartitions(ctx context.Context, in *ReleasePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/ReleasePartitions", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func (c *queryServiceClient) LoadCollection(ctx context.Context, in *LoadCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/LoadCollection", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryServiceClient) ReleaseCollection(ctx context.Context, in *ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/ReleaseCollection", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (c *queryServiceClient) CreateQueryChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*CreateQueryChannelResponse, error) {
|
|
|
|
out := new(CreateQueryChannelResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/CreateQueryChannel", in, out, opts...)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-22 14:28:06 +08:00
|
|
|
func (c *queryServiceClient) GetTimeTickChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
|
|
out := new(milvuspb.StringResponse)
|
2021-01-15 15:28:54 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/GetTimeTickChannel", in, out, opts...)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-22 14:28:06 +08:00
|
|
|
func (c *queryServiceClient) GetStatisticsChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
|
|
out := new(milvuspb.StringResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/GetStatisticsChannel", in, out, opts...)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (c *queryServiceClient) GetPartitionStates(ctx context.Context, in *PartitionStatesRequest, opts ...grpc.CallOption) (*PartitionStatesResponse, error) {
|
|
|
|
out := new(PartitionStatesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/GetPartitionStates", in, out, opts...)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-26 15:13:20 +08:00
|
|
|
func (c *queryServiceClient) GetComponentStates(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*internalpb2.ComponentStates, error) {
|
|
|
|
out := new(internalpb2.ComponentStates)
|
2021-01-20 11:02:29 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/GetComponentStates", in, out, opts...)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-02-04 11:40:14 +08:00
|
|
|
func (c *queryServiceClient) GetSegmentInfo(ctx context.Context, in *SegmentInfoRequest, opts ...grpc.CallOption) (*SegmentInfoResponse, error) {
|
|
|
|
out := new(SegmentInfoResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryService/GetSegmentInfo", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
// QueryServiceServer is the server API for QueryService service.
|
|
|
|
type QueryServiceServer interface {
|
|
|
|
RegisterNode(context.Context, *RegisterNodeRequest) (*RegisterNodeResponse, error)
|
|
|
|
ShowCollections(context.Context, *ShowCollectionRequest) (*ShowCollectionResponse, error)
|
|
|
|
ShowPartitions(context.Context, *ShowPartitionRequest) (*ShowPartitionResponse, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
LoadPartitions(context.Context, *LoadPartitionRequest) (*commonpb.Status, error)
|
2021-01-14 14:24:14 +08:00
|
|
|
ReleasePartitions(context.Context, *ReleasePartitionRequest) (*commonpb.Status, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
LoadCollection(context.Context, *LoadCollectionRequest) (*commonpb.Status, error)
|
|
|
|
ReleaseCollection(context.Context, *ReleaseCollectionRequest) (*commonpb.Status, error)
|
2021-01-14 14:24:14 +08:00
|
|
|
CreateQueryChannel(context.Context, *commonpb.Empty) (*CreateQueryChannelResponse, error)
|
2021-01-22 14:28:06 +08:00
|
|
|
GetTimeTickChannel(context.Context, *commonpb.Empty) (*milvuspb.StringResponse, error)
|
|
|
|
GetStatisticsChannel(context.Context, *commonpb.Empty) (*milvuspb.StringResponse, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
GetPartitionStates(context.Context, *PartitionStatesRequest) (*PartitionStatesResponse, error)
|
2021-01-26 15:13:20 +08:00
|
|
|
GetComponentStates(context.Context, *commonpb.Empty) (*internalpb2.ComponentStates, error)
|
2021-02-04 11:40:14 +08:00
|
|
|
GetSegmentInfo(context.Context, *SegmentInfoRequest) (*SegmentInfoResponse, error)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedQueryServiceServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedQueryServiceServer) RegisterNode(ctx context.Context, req *RegisterNodeRequest) (*RegisterNodeResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterNode not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServiceServer) ShowCollections(ctx context.Context, req *ShowCollectionRequest) (*ShowCollectionResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShowCollections not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServiceServer) ShowPartitions(ctx context.Context, req *ShowPartitionRequest) (*ShowPartitionResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShowPartitions not implemented")
|
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) LoadPartitions(ctx context.Context, req *LoadPartitionRequest) (*commonpb.Status, error) {
|
2021-01-14 14:24:14 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LoadPartitions not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServiceServer) ReleasePartitions(ctx context.Context, req *ReleasePartitionRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReleasePartitions not implemented")
|
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) LoadCollection(ctx context.Context, req *LoadCollectionRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LoadCollection not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServiceServer) ReleaseCollection(ctx context.Context, req *ReleaseCollectionRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReleaseCollection not implemented")
|
|
|
|
}
|
2021-01-14 14:24:14 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) CreateQueryChannel(ctx context.Context, req *commonpb.Empty) (*CreateQueryChannelResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateQueryChannel not implemented")
|
|
|
|
}
|
2021-01-22 14:28:06 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) GetTimeTickChannel(ctx context.Context, req *commonpb.Empty) (*milvuspb.StringResponse, error) {
|
2021-01-15 15:28:54 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetTimeTickChannel not implemented")
|
|
|
|
}
|
2021-01-22 14:28:06 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) GetStatisticsChannel(ctx context.Context, req *commonpb.Empty) (*milvuspb.StringResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStatisticsChannel not implemented")
|
2021-01-15 15:28:54 +08:00
|
|
|
}
|
|
|
|
func (*UnimplementedQueryServiceServer) GetPartitionStates(ctx context.Context, req *PartitionStatesRequest) (*PartitionStatesResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetPartitionStates not implemented")
|
|
|
|
}
|
2021-01-26 15:13:20 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) GetComponentStates(ctx context.Context, req *commonpb.Empty) (*internalpb2.ComponentStates, error) {
|
2021-01-20 11:02:29 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetComponentStates not implemented")
|
2021-01-15 15:28:54 +08:00
|
|
|
}
|
2021-02-04 11:40:14 +08:00
|
|
|
func (*UnimplementedQueryServiceServer) GetSegmentInfo(ctx context.Context, req *SegmentInfoRequest) (*SegmentInfoResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetSegmentInfo not implemented")
|
|
|
|
}
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer) {
|
|
|
|
s.RegisterService(&_QueryService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryService_RegisterNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RegisterNodeRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).RegisterNode(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/RegisterNode",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).RegisterNode(ctx, req.(*RegisterNodeRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryService_ShowCollections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ShowCollectionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).ShowCollections(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/ShowCollections",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).ShowCollections(ctx, req.(*ShowCollectionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func _QueryService_ShowPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ShowPartitionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).ShowPartitions(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/ShowPartitions",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).ShowPartitions(ctx, req.(*ShowPartitionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryService_LoadPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LoadPartitionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).LoadPartitions(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/LoadPartitions",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).LoadPartitions(ctx, req.(*LoadPartitionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryService_ReleasePartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReleasePartitionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).ReleasePartitions(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/ReleasePartitions",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).ReleasePartitions(ctx, req.(*ReleasePartitionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
func _QueryService_LoadCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LoadCollectionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).LoadCollection(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/LoadCollection",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).LoadCollection(ctx, req.(*LoadCollectionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryService_ReleaseCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReleaseCollectionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).ReleaseCollection(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/ReleaseCollection",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).ReleaseCollection(ctx, req.(*ReleaseCollectionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func _QueryService_CreateQueryChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(commonpb.Empty)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-01-15 15:28:54 +08:00
|
|
|
return srv.(QueryServiceServer).CreateQueryChannel(ctx, in)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-01-15 15:28:54 +08:00
|
|
|
FullMethod: "/milvus.proto.query.QueryService/CreateQueryChannel",
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-01-15 15:28:54 +08:00
|
|
|
return srv.(QueryServiceServer).CreateQueryChannel(ctx, req.(*commonpb.Empty))
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func _QueryService_GetTimeTickChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(commonpb.Empty)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-01-15 15:28:54 +08:00
|
|
|
return srv.(QueryServiceServer).GetTimeTickChannel(ctx, in)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-01-15 15:28:54 +08:00
|
|
|
FullMethod: "/milvus.proto.query.QueryService/GetTimeTickChannel",
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-01-15 15:28:54 +08:00
|
|
|
return srv.(QueryServiceServer).GetTimeTickChannel(ctx, req.(*commonpb.Empty))
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-22 14:28:06 +08:00
|
|
|
func _QueryService_GetStatisticsChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2021-01-15 15:28:54 +08:00
|
|
|
in := new(commonpb.Empty)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-01-22 14:28:06 +08:00
|
|
|
return srv.(QueryServiceServer).GetStatisticsChannel(ctx, in)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-01-22 14:28:06 +08:00
|
|
|
FullMethod: "/milvus.proto.query.QueryService/GetStatisticsChannel",
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-01-22 14:28:06 +08:00
|
|
|
return srv.(QueryServiceServer).GetStatisticsChannel(ctx, req.(*commonpb.Empty))
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func _QueryService_GetPartitionStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PartitionStatesRequest)
|
2021-01-14 14:24:14 +08:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-01-15 15:28:54 +08:00
|
|
|
return srv.(QueryServiceServer).GetPartitionStates(ctx, in)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-01-15 15:28:54 +08:00
|
|
|
FullMethod: "/milvus.proto.query.QueryService/GetPartitionStates",
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-01-15 15:28:54 +08:00
|
|
|
return srv.(QueryServiceServer).GetPartitionStates(ctx, req.(*PartitionStatesRequest))
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-20 11:02:29 +08:00
|
|
|
func _QueryService_GetComponentStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2021-01-14 14:24:14 +08:00
|
|
|
in := new(commonpb.Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2021-01-20 11:02:29 +08:00
|
|
|
return srv.(QueryServiceServer).GetComponentStates(ctx, in)
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2021-01-20 11:02:29 +08:00
|
|
|
FullMethod: "/milvus.proto.query.QueryService/GetComponentStates",
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2021-01-20 11:02:29 +08:00
|
|
|
return srv.(QueryServiceServer).GetComponentStates(ctx, req.(*commonpb.Empty))
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-02-04 11:40:14 +08:00
|
|
|
func _QueryService_GetSegmentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SegmentInfoRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryServiceServer).GetSegmentInfo(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryService/GetSegmentInfo",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryServiceServer).GetSegmentInfo(ctx, req.(*SegmentInfoRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
var _QueryService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "milvus.proto.query.QueryService",
|
|
|
|
HandlerType: (*QueryServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "RegisterNode",
|
|
|
|
Handler: _QueryService_RegisterNode_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "ShowCollections",
|
|
|
|
Handler: _QueryService_ShowCollections_Handler,
|
|
|
|
},
|
2021-01-15 15:28:54 +08:00
|
|
|
{
|
|
|
|
MethodName: "ShowPartitions",
|
|
|
|
Handler: _QueryService_ShowPartitions_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "LoadPartitions",
|
|
|
|
Handler: _QueryService_LoadPartitions_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "ReleasePartitions",
|
|
|
|
Handler: _QueryService_ReleasePartitions_Handler,
|
|
|
|
},
|
2021-01-14 14:24:14 +08:00
|
|
|
{
|
|
|
|
MethodName: "LoadCollection",
|
|
|
|
Handler: _QueryService_LoadCollection_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "ReleaseCollection",
|
|
|
|
Handler: _QueryService_ReleaseCollection_Handler,
|
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:28:54 +08:00
|
|
|
MethodName: "CreateQueryChannel",
|
|
|
|
Handler: _QueryService_CreateQueryChannel_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "GetTimeTickChannel",
|
|
|
|
Handler: _QueryService_GetTimeTickChannel_Handler,
|
|
|
|
},
|
|
|
|
{
|
2021-01-22 14:28:06 +08:00
|
|
|
MethodName: "GetStatisticsChannel",
|
|
|
|
Handler: _QueryService_GetStatisticsChannel_Handler,
|
2021-01-14 14:24:14 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "GetPartitionStates",
|
|
|
|
Handler: _QueryService_GetPartitionStates_Handler,
|
|
|
|
},
|
|
|
|
{
|
2021-01-20 11:02:29 +08:00
|
|
|
MethodName: "GetComponentStates",
|
|
|
|
Handler: _QueryService_GetComponentStates_Handler,
|
2021-01-14 14:24:14 +08:00
|
|
|
},
|
2021-02-04 11:40:14 +08:00
|
|
|
{
|
|
|
|
MethodName: "GetSegmentInfo",
|
|
|
|
Handler: _QueryService_GetSegmentInfo_Handler,
|
|
|
|
},
|
2021-01-15 15:28:54 +08:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "query_service.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryNodeClient is the client API for QueryNode service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type QueryNodeClient interface {
|
2021-01-22 14:28:06 +08:00
|
|
|
GetTimeTickChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
|
|
GetStatsChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
2021-02-26 15:26:21 +08:00
|
|
|
GetComponentStates(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*internalpb2.ComponentStates, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
AddQueryChannel(ctx context.Context, in *AddQueryChannelsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
|
|
RemoveQueryChannel(ctx context.Context, in *RemoveQueryChannelsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
|
|
WatchDmChannels(ctx context.Context, in *WatchDmChannelsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
|
|
LoadSegments(ctx context.Context, in *LoadSegmentRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
2021-02-24 17:24:51 +08:00
|
|
|
ReleaseCollection(ctx context.Context, in *ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
|
|
ReleasePartitions(ctx context.Context, in *ReleasePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
ReleaseSegments(ctx context.Context, in *ReleaseSegmentRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
2021-02-04 11:40:14 +08:00
|
|
|
GetSegmentInfo(ctx context.Context, in *SegmentInfoRequest, opts ...grpc.CallOption) (*SegmentInfoResponse, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type queryNodeClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewQueryNodeClient(cc *grpc.ClientConn) QueryNodeClient {
|
|
|
|
return &queryNodeClient{cc}
|
|
|
|
}
|
|
|
|
|
2021-01-22 14:28:06 +08:00
|
|
|
func (c *queryNodeClient) GetTimeTickChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
|
|
out := new(milvuspb.StringResponse)
|
2021-01-22 11:17:18 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/GetTimeTickChannel", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-22 14:28:06 +08:00
|
|
|
func (c *queryNodeClient) GetStatsChannel(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
|
|
out := new(milvuspb.StringResponse)
|
2021-01-22 11:17:18 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/GetStatsChannel", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-02-26 15:26:21 +08:00
|
|
|
func (c *queryNodeClient) GetComponentStates(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*internalpb2.ComponentStates, error) {
|
|
|
|
out := new(internalpb2.ComponentStates)
|
2021-01-22 11:17:18 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/GetComponentStates", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (c *queryNodeClient) AddQueryChannel(ctx context.Context, in *AddQueryChannelsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/AddQueryChannel", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryNodeClient) RemoveQueryChannel(ctx context.Context, in *RemoveQueryChannelsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/RemoveQueryChannel", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryNodeClient) WatchDmChannels(ctx context.Context, in *WatchDmChannelsRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/WatchDmChannels", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryNodeClient) LoadSegments(ctx context.Context, in *LoadSegmentRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/LoadSegments", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-02-24 17:24:51 +08:00
|
|
|
func (c *queryNodeClient) ReleaseCollection(ctx context.Context, in *ReleaseCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/ReleaseCollection", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *queryNodeClient) ReleasePartitions(ctx context.Context, in *ReleasePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/ReleasePartitions", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func (c *queryNodeClient) ReleaseSegments(ctx context.Context, in *ReleaseSegmentRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
|
|
out := new(commonpb.Status)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/ReleaseSegments", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-02-04 11:40:14 +08:00
|
|
|
func (c *queryNodeClient) GetSegmentInfo(ctx context.Context, in *SegmentInfoRequest, opts ...grpc.CallOption) (*SegmentInfoResponse, error) {
|
|
|
|
out := new(SegmentInfoResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.query.QueryNode/GetSegmentInfo", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
// QueryNodeServer is the server API for QueryNode service.
|
|
|
|
type QueryNodeServer interface {
|
2021-01-22 14:28:06 +08:00
|
|
|
GetTimeTickChannel(context.Context, *commonpb.Empty) (*milvuspb.StringResponse, error)
|
|
|
|
GetStatsChannel(context.Context, *commonpb.Empty) (*milvuspb.StringResponse, error)
|
2021-02-26 15:26:21 +08:00
|
|
|
GetComponentStates(context.Context, *commonpb.Empty) (*internalpb2.ComponentStates, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
AddQueryChannel(context.Context, *AddQueryChannelsRequest) (*commonpb.Status, error)
|
|
|
|
RemoveQueryChannel(context.Context, *RemoveQueryChannelsRequest) (*commonpb.Status, error)
|
|
|
|
WatchDmChannels(context.Context, *WatchDmChannelsRequest) (*commonpb.Status, error)
|
|
|
|
LoadSegments(context.Context, *LoadSegmentRequest) (*commonpb.Status, error)
|
2021-02-24 17:24:51 +08:00
|
|
|
ReleaseCollection(context.Context, *ReleaseCollectionRequest) (*commonpb.Status, error)
|
|
|
|
ReleasePartitions(context.Context, *ReleasePartitionRequest) (*commonpb.Status, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
ReleaseSegments(context.Context, *ReleaseSegmentRequest) (*commonpb.Status, error)
|
2021-02-04 11:40:14 +08:00
|
|
|
GetSegmentInfo(context.Context, *SegmentInfoRequest) (*SegmentInfoResponse, error)
|
2021-01-15 15:28:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedQueryNodeServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedQueryNodeServer struct {
|
|
|
|
}
|
|
|
|
|
2021-01-22 14:28:06 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) GetTimeTickChannel(ctx context.Context, req *commonpb.Empty) (*milvuspb.StringResponse, error) {
|
2021-01-22 11:17:18 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetTimeTickChannel not implemented")
|
|
|
|
}
|
2021-01-22 14:28:06 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) GetStatsChannel(ctx context.Context, req *commonpb.Empty) (*milvuspb.StringResponse, error) {
|
2021-01-22 11:17:18 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStatsChannel not implemented")
|
|
|
|
}
|
2021-02-26 15:26:21 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) GetComponentStates(ctx context.Context, req *commonpb.Empty) (*internalpb2.ComponentStates, error) {
|
2021-01-22 11:17:18 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetComponentStates not implemented")
|
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) AddQueryChannel(ctx context.Context, req *AddQueryChannelsRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddQueryChannel not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryNodeServer) RemoveQueryChannel(ctx context.Context, req *RemoveQueryChannelsRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RemoveQueryChannel not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryNodeServer) WatchDmChannels(ctx context.Context, req *WatchDmChannelsRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method WatchDmChannels not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryNodeServer) LoadSegments(ctx context.Context, req *LoadSegmentRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LoadSegments not implemented")
|
|
|
|
}
|
2021-02-24 17:24:51 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) ReleaseCollection(ctx context.Context, req *ReleaseCollectionRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReleaseCollection not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedQueryNodeServer) ReleasePartitions(ctx context.Context, req *ReleasePartitionRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReleasePartitions not implemented")
|
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) ReleaseSegments(ctx context.Context, req *ReleaseSegmentRequest) (*commonpb.Status, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReleaseSegments not implemented")
|
|
|
|
}
|
2021-02-04 11:40:14 +08:00
|
|
|
func (*UnimplementedQueryNodeServer) GetSegmentInfo(ctx context.Context, req *SegmentInfoRequest) (*SegmentInfoResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetSegmentInfo not implemented")
|
|
|
|
}
|
2021-01-15 15:28:54 +08:00
|
|
|
|
|
|
|
func RegisterQueryNodeServer(s *grpc.Server, srv QueryNodeServer) {
|
|
|
|
s.RegisterService(&_QueryNode_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2021-01-22 11:17:18 +08:00
|
|
|
func _QueryNode_GetTimeTickChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(commonpb.Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).GetTimeTickChannel(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/GetTimeTickChannel",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).GetTimeTickChannel(ctx, req.(*commonpb.Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryNode_GetStatsChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(commonpb.Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).GetStatsChannel(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/GetStatsChannel",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).GetStatsChannel(ctx, req.(*commonpb.Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryNode_GetComponentStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(commonpb.Empty)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).GetComponentStates(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/GetComponentStates",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).GetComponentStates(ctx, req.(*commonpb.Empty))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func _QueryNode_AddQueryChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(AddQueryChannelsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).AddQueryChannel(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/AddQueryChannel",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).AddQueryChannel(ctx, req.(*AddQueryChannelsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryNode_RemoveQueryChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RemoveQueryChannelsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).RemoveQueryChannel(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/RemoveQueryChannel",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).RemoveQueryChannel(ctx, req.(*RemoveQueryChannelsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryNode_WatchDmChannels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(WatchDmChannelsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).WatchDmChannels(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/WatchDmChannels",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).WatchDmChannels(ctx, req.(*WatchDmChannelsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryNode_LoadSegments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LoadSegmentRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).LoadSegments(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/LoadSegments",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).LoadSegments(ctx, req.(*LoadSegmentRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-02-24 17:24:51 +08:00
|
|
|
func _QueryNode_ReleaseCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReleaseCollectionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).ReleaseCollection(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/ReleaseCollection",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).ReleaseCollection(ctx, req.(*ReleaseCollectionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _QueryNode_ReleasePartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReleasePartitionRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).ReleasePartitions(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/ReleasePartitions",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).ReleasePartitions(ctx, req.(*ReleasePartitionRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
func _QueryNode_ReleaseSegments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ReleaseSegmentRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).ReleaseSegments(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/ReleaseSegments",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).ReleaseSegments(ctx, req.(*ReleaseSegmentRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-02-04 11:40:14 +08:00
|
|
|
func _QueryNode_GetSegmentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SegmentInfoRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(QueryNodeServer).GetSegmentInfo(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/milvus.proto.query.QueryNode/GetSegmentInfo",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(QueryNodeServer).GetSegmentInfo(ctx, req.(*SegmentInfoRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2021-01-15 15:28:54 +08:00
|
|
|
var _QueryNode_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "milvus.proto.query.QueryNode",
|
|
|
|
HandlerType: (*QueryNodeServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
2021-01-22 11:17:18 +08:00
|
|
|
{
|
|
|
|
MethodName: "GetTimeTickChannel",
|
|
|
|
Handler: _QueryNode_GetTimeTickChannel_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "GetStatsChannel",
|
|
|
|
Handler: _QueryNode_GetStatsChannel_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "GetComponentStates",
|
|
|
|
Handler: _QueryNode_GetComponentStates_Handler,
|
|
|
|
},
|
2021-01-14 14:24:14 +08:00
|
|
|
{
|
2021-01-15 15:28:54 +08:00
|
|
|
MethodName: "AddQueryChannel",
|
|
|
|
Handler: _QueryNode_AddQueryChannel_Handler,
|
2021-01-14 14:24:14 +08:00
|
|
|
},
|
|
|
|
{
|
2021-01-15 15:28:54 +08:00
|
|
|
MethodName: "RemoveQueryChannel",
|
|
|
|
Handler: _QueryNode_RemoveQueryChannel_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "WatchDmChannels",
|
|
|
|
Handler: _QueryNode_WatchDmChannels_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "LoadSegments",
|
|
|
|
Handler: _QueryNode_LoadSegments_Handler,
|
|
|
|
},
|
2021-02-24 17:24:51 +08:00
|
|
|
{
|
|
|
|
MethodName: "ReleaseCollection",
|
|
|
|
Handler: _QueryNode_ReleaseCollection_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "ReleasePartitions",
|
|
|
|
Handler: _QueryNode_ReleasePartitions_Handler,
|
|
|
|
},
|
2021-01-15 15:28:54 +08:00
|
|
|
{
|
|
|
|
MethodName: "ReleaseSegments",
|
|
|
|
Handler: _QueryNode_ReleaseSegments_Handler,
|
|
|
|
},
|
2021-02-04 11:40:14 +08:00
|
|
|
{
|
|
|
|
MethodName: "GetSegmentInfo",
|
|
|
|
Handler: _QueryNode_GetSegmentInfo_Handler,
|
|
|
|
},
|
2021-01-14 14:24:14 +08:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "query_service.proto",
|
|
|
|
}
|