diff --git a/go-api/schemapb/schema.pb.go b/go-api/schemapb/schema.pb.go index d3d868c..d1b9f4e 100644 --- a/go-api/schemapb/schema.pb.go +++ b/go-api/schemapb/schema.pb.go @@ -1040,11 +1040,10 @@ func (*ScalarField) XXX_OneofWrappers() []interface{} { } type SparseFloatRow struct { - // dim is the max dimension of the current vector - Dim int32 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"` - // len(indices) == len(values), indices must be sorted - Indices *IntArray `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` - Values *FloatArray `protobuf:"bytes,3,opt,name=values,proto3" json:"values,omitempty"` + // len(indices) == len(values) + // data in indices and values must be sorted by the index + Indices *IntArray `protobuf:"bytes,1,opt,name=indices,proto3" json:"indices,omitempty"` + Values *FloatArray `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -1075,13 +1074,6 @@ func (m *SparseFloatRow) XXX_DiscardUnknown() { var xxx_messageInfo_SparseFloatRow proto.InternalMessageInfo -func (m *SparseFloatRow) GetDim() int32 { - if m != nil { - return m.Dim - } - return 0 -} - func (m *SparseFloatRow) GetIndices() *IntArray { if m != nil { return m.Indices @@ -1098,12 +1090,12 @@ func (m *SparseFloatRow) GetValues() *FloatArray { // beta, api may change type SparseFloatArray struct { + Contents []*SparseFloatRow `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"` // dim is the max dimension of the current batch of vectors - Dim int32 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"` - Contents []*SparseFloatRow `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Dim int64 `protobuf:"varint,2,opt,name=dim,proto3" json:"dim,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SparseFloatArray) Reset() { *m = SparseFloatArray{} } @@ -1131,18 +1123,18 @@ func (m *SparseFloatArray) XXX_DiscardUnknown() { var xxx_messageInfo_SparseFloatArray proto.InternalMessageInfo -func (m *SparseFloatArray) GetDim() int32 { +func (m *SparseFloatArray) GetContents() []*SparseFloatRow { if m != nil { - return m.Dim + return m.Contents } - return 0 + return nil } -func (m *SparseFloatArray) GetContents() []*SparseFloatRow { +func (m *SparseFloatArray) GetDim() int64 { if m != nil { - return m.Contents + return m.Dim } - return nil + return 0 } type VectorField struct { @@ -1737,108 +1729,108 @@ func init() { func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } var fileDescriptor_1c5fb4d8cc22d66a = []byte{ - // 1640 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x4b, 0x73, 0xdb, 0x46, - 0x12, 0x16, 0x08, 0x3e, 0xc0, 0x06, 0x45, 0x43, 0x63, 0xc9, 0xe6, 0x7a, 0x4b, 0x16, 0x4d, 0xaf, - 0x6b, 0x69, 0xd7, 0x5a, 0x5a, 0xcb, 0x5e, 0xdb, 0xeb, 0xb2, 0xcb, 0x5e, 0x8a, 0xa5, 0x15, 0x57, - 0x1b, 0x5b, 0x81, 0x52, 0x4a, 0x55, 0x2e, 0x28, 0x90, 0x18, 0x51, 0x63, 0x83, 0x18, 0x04, 0x33, - 0x54, 0xc2, 0x7b, 0xf2, 0x0f, 0x72, 0xcc, 0x21, 0xe7, 0xfc, 0x8b, 0xfc, 0x83, 0x9c, 0x52, 0x95, - 0x4b, 0xee, 0x39, 0xe5, 0x98, 0x6b, 0x6a, 0x1e, 0x20, 0xc1, 0x97, 0xa4, 0xdc, 0x66, 0x7a, 0xbe, - 0xee, 0xe9, 0xc7, 0x37, 0x8d, 0x06, 0x54, 0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e2, 0xf2, 0x70, 0x13, 0xca, - 0x21, 0x8d, 0xfa, 0xea, 0x54, 0x30, 0xcd, 0x14, 0xba, 0x42, 0x24, 0x8f, 0xb7, 0x00, 0x4e, 0x45, - 0x6d, 0xd4, 0xb9, 0xe8, 0x6b, 0xb9, 0x83, 0x15, 0xb7, 0x2c, 0x65, 0x12, 0x70, 0x07, 0xec, 0x40, - 0x96, 0x46, 0x21, 0x04, 0x8f, 0x8c, 0x83, 0x15, 0x17, 0x94, 0x30, 0x85, 0x30, 0x99, 0x78, 0x05, - 0x29, 0x0a, 0xae, 0x0b, 0x88, 0x12, 0xa6, 0xd7, 0x74, 0x45, 0xf5, 0x14, 0xa2, 0x54, 0x37, 0x9a, - 0x15, 0x71, 0x8d, 0x94, 0x09, 0x40, 0xab, 0xa8, 0xb2, 0xd0, 0xf8, 0x25, 0x0f, 0x76, 0x26, 0xe5, - 0xe8, 0xd5, 0x6c, 0xe8, 0xf6, 0xee, 0xed, 0x85, 0x99, 0x1e, 0x73, 0x78, 0x2a, 0x35, 0x2f, 0x66, - 0x52, 0x63, 0x2f, 0xa9, 0x53, 0x4a, 0xf0, 0x6c, 0xe6, 0x5e, 0xcd, 0x66, 0x6e, 0xd9, 0xd5, 0x63, - 0xf6, 0x4f, 0x65, 0xf6, 0xcd, 0x5c, 0x66, 0x97, 0xb5, 0xad, 0xc9, 0xe3, 0x98, 0x4e, 0xfd, 0xde, - 0x7c, 0xea, 0x97, 0xb1, 0x34, 0xf3, 0x7a, 0x66, 0x8a, 0xb3, 0x37, 0x5f, 0x9c, 0xa5, 0x54, 0x9f, - 0xbc, 0x9e, 0x99, 0xf2, 0xbd, 0x99, 0x2b, 0xdf, 0xb2, 0x58, 0x26, 0x6f, 0x74, 0xaa, 0xbe, 0xc2, - 0x82, 0x2f, 0xa4, 0xca, 0x82, 0x75, 0x81, 0x85, 0xc9, 0xfb, 0x14, 0x16, 0xa4, 0x52, 0x5a, 0x8e, - 0xf7, 0x8c, 0x46, 0xca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, 0xf1, 0x2a, 0xfd, 0x16, 0x98, 0x4b, 0xe3, 0x19, 0x13, 0xc3, 0x55, 0x35, 0x56, 0xdd, 0xef, - 0x06, 0x14, 0x59, 0x8f, 0x26, 0x58, 0xcd, 0x73, 0x39, 0x57, 0xef, 0xd0, 0x03, 0x30, 0x49, 0xc0, - 0x74, 0x67, 0xaf, 0x2d, 0xee, 0x31, 0x6d, 0xe6, 0x0a, 0x10, 0x5a, 0x97, 0x9e, 0x7d, 0x50, 0xbf, - 0x07, 0xa6, 0xab, 0x36, 0xe8, 0x2e, 0xac, 0xd2, 0x21, 0x8f, 0x87, 0xdc, 0xd3, 0x03, 0x63, 0x49, - 0x8e, 0x3b, 0x15, 0x25, 0xdc, 0x57, 0x43, 0xe1, 0x3b, 0x58, 0xef, 0x27, 0x74, 0x18, 0x7b, 0xdd, - 0x91, 0x82, 0xe9, 0x59, 0xda, 0xba, 0xa0, 0x30, 0x93, 0x40, 0xd6, 0xa4, 0x6e, 0x6b, 0x24, 0x25, - 0x72, 0x2a, 0x69, 0xbc, 0x87, 0x75, 0x45, 0xa0, 0xbd, 0x70, 0xc8, 0x38, 0x16, 0x95, 0xe8, 0x44, - 0xa7, 0x54, 0xf8, 0xa8, 0xc6, 0x4d, 0x35, 0x0a, 0xab, 0x0d, 0x7a, 0x09, 0x56, 0x0f, 0x47, 0x3c, - 0xa1, 0x97, 0x94, 0x34, 0xc3, 0x49, 0x77, 0xac, 0xd1, 0xf8, 0x07, 0xac, 0x2b, 0xaa, 0x5f, 0xe5, - 0xae, 0xc6, 0x4f, 0x06, 0x54, 0x67, 0x80, 0x3e, 0xdc, 0x54, 0xf4, 0xf6, 0x7a, 0xe3, 0x03, 0x8f, - 0x44, 0xa7, 0x94, 0xe9, 0xc1, 0xef, 0xfe, 0x05, 0xde, 0x4c, 0xdb, 0x72, 0x37, 0xce, 0x17, 0x48, - 0x99, 0xb8, 0x42, 0xbd, 0xbf, 0xf9, 0x2b, 0x72, 0x17, 0x5c, 0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, 0x47, 0xc6, 0x67, 0x4f, 0xfa, 0x84, 0x9f, 0x0d, 0xbb, 0xe2, 0x6f, 0x79, 0x47, 0xc1, - 0x1e, 0x12, 0x9a, 0xae, 0x64, 0x01, 0x77, 0xfa, 0xf4, 0xa1, 0x1f, 0x93, 0x9d, 0xf3, 0xdd, 0x1d, - 0x55, 0xca, 0xb8, 0xfb, 0x9d, 0x61, 0x7c, 0x9f, 0x43, 0x1f, 0x29, 0xab, 0x7b, 0x21, 0xc1, 0x11, - 0xdf, 0xfe, 0x6f, 0x12, 0xf7, 0xba, 0x45, 0xa9, 0xf1, 0xf8, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xf5, 0x3e, 0x72, 0x01, 0xfa, 0x10, 0x00, 0x00, + // 1634 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x4d, 0x73, 0x1b, 0x45, + 0x13, 0xf6, 0x6a, 0xf5, 0xb1, 0xea, 0x95, 0x95, 0xf5, 0xc4, 0x4e, 0xf4, 0xe6, 0x2d, 0xc7, 0x8a, + 0xf2, 0xa6, 0x5e, 0x25, 0x45, 0x6c, 0xe2, 0x84, 0x24, 0xa4, 0x92, 0x4a, 0x90, 0x55, 0xc6, 0xc2, + 0x90, 0x98, 0x35, 0x65, 0xaa, 0xb8, 0x6c, 0xad, 0xb4, 0x63, 0x79, 0x92, 0xd5, 0xce, 0xb2, 0x33, + 0x32, 0xe8, 0x4a, 0xc1, 0xbf, 0xe0, 0xc0, 0x99, 0x7f, 0xc1, 0x3f, 0xe0, 0x44, 0x15, 0x17, 0xee, + 0x9c, 0x38, 0x72, 0xa5, 0xe6, 0x63, 0xf5, 0x2d, 0xd9, 0xdc, 0x66, 0x7a, 0x9e, 0xee, 0x99, 0xee, + 0x7e, 0xba, 0xb7, 0x17, 0x4a, 0xac, 0x73, 0x86, 0x7b, 0xfe, 0x76, 0x9c, 0x50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c, 0x92, 0x8e, 0x61, 0x69, 0x89, 0x74, 0x08, 0x95, 0x09, 0x82, 0x7d, 0x67, + 0x40, 0xf9, 0x38, 0xf6, 0x13, 0x86, 0x65, 0xd8, 0x5d, 0xfa, 0x0d, 0x7a, 0x02, 0x05, 0x12, 0x05, + 0xa4, 0x83, 0x99, 0x66, 0xd8, 0x72, 0x8e, 0xb8, 0x29, 0x1a, 0x3d, 0x81, 0xbc, 0xfc, 0x28, 0x31, + 0xcd, 0xad, 0x8b, 0xd2, 0xeb, 0x6a, 0x78, 0x0d, 0x83, 0x33, 0xf6, 0x06, 0xd5, 0x07, 0x5e, 0x82, + 0xd5, 0xa1, 0x11, 0xc7, 0x11, 0x67, 0xba, 0x21, 0xdd, 0x9e, 0x9f, 0xa5, 0x89, 0xc7, 0xbb, 0x43, + 0x25, 0xe4, 0x80, 0x19, 0x90, 0x9e, 0x7c, 0x8a, 0xe9, 0x8a, 0x65, 0xed, 0x97, 0x0c, 0xd8, 0x27, + 0xb8, 0xc3, 0xa9, 0x2e, 0x26, 0x8d, 0x30, 0x86, 0x08, 0x31, 0x35, 0x28, 0x92, 0x9e, 0x4b, 0xd8, + 0x25, 0xfd, 0x38, 0x58, 0x71, 0x6d, 0xa9, 0xa6, 0x8c, 0xa3, 0x3b, 0xb0, 0xda, 0x26, 0x91, 0x98, + 0x9f, 0xb4, 0x19, 0x53, 0x17, 0x78, 0x49, 0x89, 0x35, 0xec, 0xff, 0x50, 0x96, 0x5a, 0x0f, 0x1e, + 0xa7, 0xb8, 0xac, 0xc6, 0xad, 0x6a, 0xb9, 0x06, 0xde, 0x85, 0x2b, 0xed, 0x29, 0x64, 0x4e, 0x23, + 0xcb, 0xed, 0x49, 0xe8, 0x97, 0x70, 0x95, 0xc9, 0x80, 0x78, 0x13, 0x7e, 0x28, 0x9a, 0xdf, 0xb9, + 0x28, 0x80, 0xa9, 0x37, 0x6b, 0x6c, 0x24, 0x53, 0x86, 0x87, 0x7c, 0xf9, 0x31, 0x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 0xe1, 0x67, 0xfd, 0xb6, 0xf8, 0x37, 0xde, 0x51, 0xb0, 0xfb, 0x84, 0xa6, 0x2b, 0x99, + 0xc0, 0x9d, 0x2e, 0xbd, 0xef, 0xc7, 0x64, 0xe7, 0x7c, 0x77, 0x47, 0xa5, 0x32, 0x6e, 0xff, 0x64, + 0x18, 0x3f, 0x67, 0xd0, 0x67, 0xca, 0xea, 0x5e, 0x48, 0x70, 0xc4, 0xb7, 0x3f, 0x4e, 0xe2, 0x4e, + 0x3b, 0x2f, 0x35, 0x1e, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xa3, 0x37, 0x65, 0xe8, 0x10, + 0x00, 0x00, } diff --git a/proto/schema.proto b/proto/schema.proto index b80ba80..bcd0ab1 100644 --- a/proto/schema.proto +++ b/proto/schema.proto @@ -126,18 +126,17 @@ message ScalarField { } message SparseFloatRow { - // dim is the max dimension of the current vector - int32 dim = 1; - // len(indices) == len(values), indices must be sorted - IntArray indices = 2; - FloatArray values = 3; + // len(indices) == len(values) + // data in indices and values must be sorted by the index + IntArray indices = 1; + FloatArray values = 2; } // beta, api may change message SparseFloatArray { + repeated SparseFloatRow contents = 1; // dim is the max dimension of the current batch of vectors - int32 dim = 1; - repeated SparseFloatRow contents = 2; + int64 dim = 2; } message VectorField {