Use copy of vdsm InspectRequest for better compatibility

This commit is contained in:
Cody Soyland 2020-10-09 13:21:46 -05:00
parent a58c345232
commit 3039aa44af
3 changed files with 146 additions and 49 deletions

View file

@ -610,6 +610,86 @@ func (m *QueryPQLRequest) GetPql() string {
return ""
}
// copied from pilosa.proto to use "vds" instead of "index" and "records" instead of "columns"
type InspectRequest struct {
Vds string `protobuf:"bytes,1,opt,name=vds,proto3" json:"vds,omitempty"`
Records *proto1.IdsOrKeys `protobuf:"bytes,2,opt,name=records,proto3" json:"records,omitempty"`
FilterFields []string `protobuf:"bytes,3,rep,name=filterFields,proto3" json:"filterFields,omitempty"`
Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
Offset uint64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InspectRequest) Reset() { *m = InspectRequest{} }
func (m *InspectRequest) String() string { return proto.CompactTextString(m) }
func (*InspectRequest) ProtoMessage() {}
func (*InspectRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3849c3e549495f50, []int{11}
}
func (m *InspectRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InspectRequest.Unmarshal(m, b)
}
func (m *InspectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InspectRequest.Marshal(b, m, deterministic)
}
func (m *InspectRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_InspectRequest.Merge(m, src)
}
func (m *InspectRequest) XXX_Size() int {
return xxx_messageInfo_InspectRequest.Size(m)
}
func (m *InspectRequest) XXX_DiscardUnknown() {
xxx_messageInfo_InspectRequest.DiscardUnknown(m)
}
var xxx_messageInfo_InspectRequest proto.InternalMessageInfo
func (m *InspectRequest) GetVds() string {
if m != nil {
return m.Vds
}
return ""
}
func (m *InspectRequest) GetRecords() *proto1.IdsOrKeys {
if m != nil {
return m.Records
}
return nil
}
func (m *InspectRequest) GetFilterFields() []string {
if m != nil {
return m.FilterFields
}
return nil
}
func (m *InspectRequest) GetLimit() uint64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *InspectRequest) GetOffset() uint64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *InspectRequest) GetQuery() string {
if m != nil {
return m.Query
}
return ""
}
func init() {
proto.RegisterType((*DataSource)(nil), "vdsm.DataSource")
proto.RegisterMapType((map[string]string)(nil), "vdsm.DataSource.ConfigEntry")
@ -623,52 +703,58 @@ func init() {
proto.RegisterType((*DeleteVDSRequest)(nil), "vdsm.DeleteVDSRequest")
proto.RegisterType((*DeleteVDSResponse)(nil), "vdsm.DeleteVDSResponse")
proto.RegisterType((*QueryPQLRequest)(nil), "vdsm.QueryPQLRequest")
proto.RegisterType((*InspectRequest)(nil), "vdsm.InspectRequest")
}
func init() { proto.RegisterFile("vdsm/vdsm.proto", fileDescriptor_3849c3e549495f50) }
var fileDescriptor_3849c3e549495f50 = []byte{
// 629 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xdb, 0x6e, 0xd3, 0x40,
0x10, 0x8d, 0xe3, 0x34, 0x6d, 0x26, 0xb4, 0x09, 0xdb, 0xb4, 0xb5, 0xc2, 0x45, 0xc1, 0x0f, 0x28,
0x2f, 0xa4, 0x55, 0x4a, 0xa5, 0x52, 0x21, 0x24, 0xda, 0x00, 0xad, 0x54, 0x20, 0x71, 0xa0, 0x0f,
0xbc, 0xa0, 0xad, 0xbd, 0x2d, 0x2b, 0x1c, 0xdb, 0xf1, 0xae, 0x03, 0xf9, 0x1d, 0xfe, 0x80, 0x2f,
0xe3, 0x17, 0x90, 0xf7, 0xe2, 0x38, 0x06, 0x54, 0xa4, 0xbe, 0x24, 0xb3, 0x67, 0x67, 0xe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 0x32, 0xe8, 0x08, 0xf2, 0x12,
0x44, 0xdb, 0xe9, 0x10, 0x9d, 0x57, 0x5b, 0x06, 0xe7, 0x69, 0x1d, 0x28, 0x28, 0x03, 0x68, 0xc2,
0x65, 0x07, 0x69, 0xc2, 0x15, 0x97, 0xd8, 0x19, 0xf4, 0x14, 0x8a, 0xf3, 0xe9, 0xa1, 0x5d, 0xf5,
0xa0, 0x56, 0x6c, 0x51, 0xdf, 0xfb, 0x09, 0x9f, 0xe7, 0x3f, 0x81, 0x75, 0x31, 0xe8, 0x41, 0xff,
0x12, 0xed, 0xe9, 0x39, 0x68, 0x44, 0xe7, 0x6f, 0xeb, 0x03, 0x27, 0xfc, 0xb4, 0xc8, 0x3d, 0x30,
0xd0, 0x33, 0xd8, 0xd4, 0xb1, 0x6f, 0x03, 0x37, 0x9e, 0xdd, 0x5d, 0x62, 0x47, 0x1f, 0xbc, 0x71,
0x6f, 0x7c, 0x9c, 0x6a, 0xe0, 0x58, 0x35, 0xd0, 0xeb, 0x5f, 0x22, 0xa5, 0x72, 0xc5, 0x79, 0xbf,
0xa7, 0xef, 0xfd, 0x9a, 0xbe, 0xf7, 0x07, 0xf4, 0x1d, 0x28, 0x28, 0xc3, 0xea, 0x9b, 0x5f, 0xf6,
0xef, 0x9d, 0xe4, 0x27, 0xcd, 0x77, 0xff, 0xdf, 0x12, 0xf6, 0x21, 0xb9, 0x69, 0x0d, 0xc3, 0xf1,
0xbe, 0x0c, 0xd2, 0x7f, 0xd3, 0xf6, 0xbe, 0xf8, 0xb4, 0x88, 0x2f, 0xcf, 0x4d, 0x5e, 0xac, 0x0f,
0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0xff, 0x97, 0x0c, 0xf4, 0x8d, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -691,7 +777,7 @@ type MoleculaClient interface {
QuerySQLUnary(ctx context.Context, in *proto1.QuerySQLRequest, opts ...grpc.CallOption) (*proto1.TableResponse, error)
QueryPQL(ctx context.Context, in *QueryPQLRequest, opts ...grpc.CallOption) (Molecula_QueryPQLClient, error)
QueryPQLUnary(ctx context.Context, in *proto1.QueryPQLRequest, opts ...grpc.CallOption) (*proto1.TableResponse, error)
Inspect(ctx context.Context, in *proto1.InspectRequest, opts ...grpc.CallOption) (Molecula_InspectClient, error)
Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (Molecula_InspectClient, error)
}
type moleculaClient struct {
@ -820,7 +906,7 @@ func (c *moleculaClient) QueryPQLUnary(ctx context.Context, in *proto1.QueryPQLR
return out, nil
}
func (c *moleculaClient) Inspect(ctx context.Context, in *proto1.InspectRequest, opts ...grpc.CallOption) (Molecula_InspectClient, error) {
func (c *moleculaClient) Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (Molecula_InspectClient, error) {
stream, err := c.cc.NewStream(ctx, &_Molecula_serviceDesc.Streams[2], "/vdsm.Molecula/Inspect", opts...)
if err != nil {
return nil, err
@ -862,7 +948,7 @@ type MoleculaServer interface {
QuerySQLUnary(context.Context, *proto1.QuerySQLRequest) (*proto1.TableResponse, error)
QueryPQL(*QueryPQLRequest, Molecula_QueryPQLServer) error
QueryPQLUnary(context.Context, *proto1.QueryPQLRequest) (*proto1.TableResponse, error)
Inspect(*proto1.InspectRequest, Molecula_InspectServer) error
Inspect(*InspectRequest, Molecula_InspectServer) error
}
// UnimplementedMoleculaServer can be embedded to have forward compatible implementations.
@ -893,7 +979,7 @@ func (*UnimplementedMoleculaServer) QueryPQL(req *QueryPQLRequest, srv Molecula_
func (*UnimplementedMoleculaServer) QueryPQLUnary(ctx context.Context, req *proto1.QueryPQLRequest) (*proto1.TableResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryPQLUnary not implemented")
}
func (*UnimplementedMoleculaServer) Inspect(req *proto1.InspectRequest, srv Molecula_InspectServer) error {
func (*UnimplementedMoleculaServer) Inspect(req *InspectRequest, srv Molecula_InspectServer) error {
return status.Errorf(codes.Unimplemented, "method Inspect not implemented")
}
@ -1052,7 +1138,7 @@ func _Molecula_QueryPQLUnary_Handler(srv interface{}, ctx context.Context, dec f
}
func _Molecula_Inspect_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(proto1.InspectRequest)
m := new(InspectRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}

View file

@ -66,6 +66,16 @@ message QueryPQLRequest {
string pql = 2;
}
// copied from pilosa.proto to use "vds" instead of "index" and "records" instead of "columns"
message InspectRequest {
string vds = 1;
pilosa.IdsOrKeys records = 2;
repeated string filterFields = 3;
uint64 limit = 4;
uint64 offset = 5;
string query = 6;
}
service Molecula {
rpc GetVDSs(GetVDSsRequest) returns (GetVDSsResponse) {};
rpc GetVDS(GetVDSRequest) returns (GetVDSResponse) {};
@ -75,5 +85,5 @@ service Molecula {
rpc QuerySQLUnary(pilosa.QuerySQLRequest) returns (pilosa.TableResponse) {};
rpc QueryPQL(QueryPQLRequest) returns (stream pilosa.RowResponse) {};
rpc QueryPQLUnary(pilosa.QueryPQLRequest) returns (pilosa.TableResponse) {};
rpc Inspect(pilosa.InspectRequest) returns (stream pilosa.RowResponse) {};
rpc Inspect(InspectRequest) returns (stream pilosa.RowResponse) {};
}

View file

@ -342,8 +342,9 @@ func (h *VDSMGRPCHandler) QueryPQLUnary(ctx context.Context, req *pb.QueryPQLReq
return h.grpcHandler.QueryPQLUnary(ctx, req)
}
func (h *VDSMGRPCHandler) Inspect(req *pb.InspectRequest, srv vdsm_pb.Molecula_InspectServer) error {
return h.grpcHandler.Inspect(req, srv)
func (h *VDSMGRPCHandler) Inspect(req *vdsm_pb.InspectRequest, srv vdsm_pb.Molecula_InspectServer) error {
preq := &pb.InspectRequest{Index: req.Vds, Columns: req.Records, FilterFields: req.FilterFields, Limit: req.Limit, Offset: req.Offset, Query: req.Query}
return h.grpcHandler.Inspect(preq, srv)
}
// ResultUint64 is a wrapper around a uint64 result type