mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 12:59:23 +08:00
a992dcf6a8
* improve code readibility Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * add offset in RetrieveResults Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * add VectorFieldInfo into Segment struct Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * add new interface for query vector Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * update load vector field logic Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * update load vector field logic Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * fill in field name in query result Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * add FieldId into FieldData Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * add fillVectorOutputFieldsIfNeeded Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * update data_codec_test.go Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * add DeserializeFieldData Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * realize query return vector output field Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * fix static-check Signed-off-by: yudong.cai <yudong.cai@zilliz.com> * disable query vector case Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
264 lines
9.9 KiB
Go
264 lines
9.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: segcore.proto
|
|
|
|
package segcorepb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
schemapb "github.com/milvus-io/milvus/internal/proto/schemapb"
|
|
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 RetrieveRequest struct {
|
|
Ids *schemapb.IDs `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"`
|
|
OutputFieldsId []int64 `protobuf:"varint,2,rep,packed,name=output_fields_id,json=outputFieldsId,proto3" json:"output_fields_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RetrieveRequest) Reset() { *m = RetrieveRequest{} }
|
|
func (m *RetrieveRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RetrieveRequest) ProtoMessage() {}
|
|
func (*RetrieveRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_1d79fce784797357, []int{0}
|
|
}
|
|
|
|
func (m *RetrieveRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RetrieveRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RetrieveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RetrieveRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RetrieveRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RetrieveRequest.Merge(m, src)
|
|
}
|
|
func (m *RetrieveRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RetrieveRequest.Size(m)
|
|
}
|
|
func (m *RetrieveRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RetrieveRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RetrieveRequest proto.InternalMessageInfo
|
|
|
|
func (m *RetrieveRequest) GetIds() *schemapb.IDs {
|
|
if m != nil {
|
|
return m.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RetrieveRequest) GetOutputFieldsId() []int64 {
|
|
if m != nil {
|
|
return m.OutputFieldsId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RetrieveResults struct {
|
|
Ids *schemapb.IDs `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"`
|
|
Offset []int64 `protobuf:"varint,2,rep,packed,name=offset,proto3" json:"offset,omitempty"`
|
|
FieldsData []*schemapb.FieldData `protobuf:"bytes,3,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RetrieveResults) Reset() { *m = RetrieveResults{} }
|
|
func (m *RetrieveResults) String() string { return proto.CompactTextString(m) }
|
|
func (*RetrieveResults) ProtoMessage() {}
|
|
func (*RetrieveResults) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_1d79fce784797357, []int{1}
|
|
}
|
|
|
|
func (m *RetrieveResults) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RetrieveResults.Unmarshal(m, b)
|
|
}
|
|
func (m *RetrieveResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RetrieveResults.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RetrieveResults) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RetrieveResults.Merge(m, src)
|
|
}
|
|
func (m *RetrieveResults) XXX_Size() int {
|
|
return xxx_messageInfo_RetrieveResults.Size(m)
|
|
}
|
|
func (m *RetrieveResults) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RetrieveResults.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RetrieveResults proto.InternalMessageInfo
|
|
|
|
func (m *RetrieveResults) GetIds() *schemapb.IDs {
|
|
if m != nil {
|
|
return m.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RetrieveResults) GetOffset() []int64 {
|
|
if m != nil {
|
|
return m.Offset
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RetrieveResults) GetFieldsData() []*schemapb.FieldData {
|
|
if m != nil {
|
|
return m.FieldsData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LoadFieldMeta struct {
|
|
MinTimestamp int64 `protobuf:"varint,1,opt,name=min_timestamp,json=minTimestamp,proto3" json:"min_timestamp,omitempty"`
|
|
MaxTimestamp int64 `protobuf:"varint,2,opt,name=max_timestamp,json=maxTimestamp,proto3" json:"max_timestamp,omitempty"`
|
|
RowCount int64 `protobuf:"varint,3,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LoadFieldMeta) Reset() { *m = LoadFieldMeta{} }
|
|
func (m *LoadFieldMeta) String() string { return proto.CompactTextString(m) }
|
|
func (*LoadFieldMeta) ProtoMessage() {}
|
|
func (*LoadFieldMeta) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_1d79fce784797357, []int{2}
|
|
}
|
|
|
|
func (m *LoadFieldMeta) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LoadFieldMeta.Unmarshal(m, b)
|
|
}
|
|
func (m *LoadFieldMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LoadFieldMeta.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LoadFieldMeta) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LoadFieldMeta.Merge(m, src)
|
|
}
|
|
func (m *LoadFieldMeta) XXX_Size() int {
|
|
return xxx_messageInfo_LoadFieldMeta.Size(m)
|
|
}
|
|
func (m *LoadFieldMeta) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LoadFieldMeta.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LoadFieldMeta proto.InternalMessageInfo
|
|
|
|
func (m *LoadFieldMeta) GetMinTimestamp() int64 {
|
|
if m != nil {
|
|
return m.MinTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LoadFieldMeta) GetMaxTimestamp() int64 {
|
|
if m != nil {
|
|
return m.MaxTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LoadFieldMeta) GetRowCount() int64 {
|
|
if m != nil {
|
|
return m.RowCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type LoadSegmentMeta struct {
|
|
// TODOs
|
|
Metas []*LoadFieldMeta `protobuf:"bytes,1,rep,name=metas,proto3" json:"metas,omitempty"`
|
|
TotalSize int64 `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LoadSegmentMeta) Reset() { *m = LoadSegmentMeta{} }
|
|
func (m *LoadSegmentMeta) String() string { return proto.CompactTextString(m) }
|
|
func (*LoadSegmentMeta) ProtoMessage() {}
|
|
func (*LoadSegmentMeta) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_1d79fce784797357, []int{3}
|
|
}
|
|
|
|
func (m *LoadSegmentMeta) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LoadSegmentMeta.Unmarshal(m, b)
|
|
}
|
|
func (m *LoadSegmentMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LoadSegmentMeta.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LoadSegmentMeta) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LoadSegmentMeta.Merge(m, src)
|
|
}
|
|
func (m *LoadSegmentMeta) XXX_Size() int {
|
|
return xxx_messageInfo_LoadSegmentMeta.Size(m)
|
|
}
|
|
func (m *LoadSegmentMeta) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LoadSegmentMeta.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LoadSegmentMeta proto.InternalMessageInfo
|
|
|
|
func (m *LoadSegmentMeta) GetMetas() []*LoadFieldMeta {
|
|
if m != nil {
|
|
return m.Metas
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LoadSegmentMeta) GetTotalSize() int64 {
|
|
if m != nil {
|
|
return m.TotalSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RetrieveRequest)(nil), "milvus.proto.segcore.RetrieveRequest")
|
|
proto.RegisterType((*RetrieveResults)(nil), "milvus.proto.segcore.RetrieveResults")
|
|
proto.RegisterType((*LoadFieldMeta)(nil), "milvus.proto.segcore.LoadFieldMeta")
|
|
proto.RegisterType((*LoadSegmentMeta)(nil), "milvus.proto.segcore.LoadSegmentMeta")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("segcore.proto", fileDescriptor_1d79fce784797357) }
|
|
|
|
var fileDescriptor_1d79fce784797357 = []byte{
|
|
// 357 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x41, 0x4b, 0xeb, 0x40,
|
|
0x14, 0x85, 0x69, 0xc3, 0x2b, 0xaf, 0xb7, 0xed, 0xeb, 0x23, 0x3c, 0x1e, 0x41, 0x51, 0x4a, 0xba,
|
|
0x09, 0x82, 0x09, 0x54, 0x11, 0x5c, 0x09, 0x5a, 0x84, 0x82, 0x6e, 0x52, 0x57, 0x6e, 0xc2, 0x34,
|
|
0xb9, 0x4d, 0x07, 0x33, 0x99, 0x98, 0xb9, 0x69, 0x4b, 0x7f, 0x88, 0xbf, 0x57, 0x32, 0x19, 0xb1,
|
|
0x85, 0x6e, 0xdc, 0xcd, 0x3d, 0x73, 0xee, 0xf9, 0x4e, 0x32, 0x30, 0x50, 0x98, 0xc6, 0xb2, 0x44,
|
|
0xbf, 0x28, 0x25, 0x49, 0xfb, 0x9f, 0xe0, 0xd9, 0xba, 0x52, 0xcd, 0xe4, 0x9b, 0xbb, 0x93, 0xbe,
|
|
0x8a, 0x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