mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
This commit adds the ability to set string, integer, and boolean values on bitmaps and profiles within Pilosa. Bitmap attributes are automatically returned when making a `Bitmap()` call. Profile attributes must be requested by setting `profile=true` in the URL. The function names have also been renamed to initial caps so that the PQL query language can support math operations in the future.
345 lines
7.9 KiB
Go
345 lines
7.9 KiB
Go
// Code generated by protoc-gen-gogo.
|
|
// source: internal/internal.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package internal is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
internal/internal.proto
|
|
|
|
It has these top-level messages:
|
|
Bitmap
|
|
Chunk
|
|
Pair
|
|
Bit
|
|
Profile
|
|
Attr
|
|
QueryRequest
|
|
QueryResponse
|
|
ImportRequest
|
|
ImportResponse
|
|
*/
|
|
package internal
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = math.Inf
|
|
|
|
type Bitmap struct {
|
|
Chunks []*Chunk `protobuf:"bytes,1,rep" json:"Chunks,omitempty"`
|
|
Attrs []*Attr `protobuf:"bytes,2,rep" json:"Attrs,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Bitmap) Reset() { *m = Bitmap{} }
|
|
func (m *Bitmap) String() string { return proto.CompactTextString(m) }
|
|
func (*Bitmap) ProtoMessage() {}
|
|
|
|
func (m *Bitmap) GetChunks() []*Chunk {
|
|
if m != nil {
|
|
return m.Chunks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Bitmap) GetAttrs() []*Attr {
|
|
if m != nil {
|
|
return m.Attrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Chunk struct {
|
|
Key *uint64 `protobuf:"varint,1,req" json:"Key,omitempty"`
|
|
Value []uint64 `protobuf:"varint,2,rep" json:"Value,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Chunk) Reset() { *m = Chunk{} }
|
|
func (m *Chunk) String() string { return proto.CompactTextString(m) }
|
|
func (*Chunk) ProtoMessage() {}
|
|
|
|
func (m *Chunk) GetKey() uint64 {
|
|
if m != nil && m.Key != nil {
|
|
return *m.Key
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Chunk) GetValue() []uint64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Pair struct {
|
|
Key *uint64 `protobuf:"varint,1,req" json:"Key,omitempty"`
|
|
Count *uint64 `protobuf:"varint,2,req" json:"Count,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Pair) Reset() { *m = Pair{} }
|
|
func (m *Pair) String() string { return proto.CompactTextString(m) }
|
|
func (*Pair) ProtoMessage() {}
|
|
|
|
func (m *Pair) GetKey() uint64 {
|
|
if m != nil && m.Key != nil {
|
|
return *m.Key
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Pair) GetCount() uint64 {
|
|
if m != nil && m.Count != nil {
|
|
return *m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Bit struct {
|
|
BitmapID *uint64 `protobuf:"varint,1,req" json:"BitmapID,omitempty"`
|
|
ProfileID *uint64 `protobuf:"varint,2,req" json:"ProfileID,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Bit) Reset() { *m = Bit{} }
|
|
func (m *Bit) String() string { return proto.CompactTextString(m) }
|
|
func (*Bit) ProtoMessage() {}
|
|
|
|
func (m *Bit) GetBitmapID() uint64 {
|
|
if m != nil && m.BitmapID != nil {
|
|
return *m.BitmapID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Bit) GetProfileID() uint64 {
|
|
if m != nil && m.ProfileID != nil {
|
|
return *m.ProfileID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Profile struct {
|
|
ID *uint64 `protobuf:"varint,1,req" json:"ID,omitempty"`
|
|
Attrs []*Attr `protobuf:"bytes,2,rep" json:"Attrs,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Profile) Reset() { *m = Profile{} }
|
|
func (m *Profile) String() string { return proto.CompactTextString(m) }
|
|
func (*Profile) ProtoMessage() {}
|
|
|
|
func (m *Profile) GetID() uint64 {
|
|
if m != nil && m.ID != nil {
|
|
return *m.ID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Profile) GetAttrs() []*Attr {
|
|
if m != nil {
|
|
return m.Attrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Attr struct {
|
|
Key *string `protobuf:"bytes,1,req" json:"Key,omitempty"`
|
|
StringValue *string `protobuf:"bytes,2,opt" json:"StringValue,omitempty"`
|
|
IntValue *int64 `protobuf:"varint,3,opt" json:"IntValue,omitempty"`
|
|
BoolValue *bool `protobuf:"varint,4,opt" json:"BoolValue,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Attr) Reset() { *m = Attr{} }
|
|
func (m *Attr) String() string { return proto.CompactTextString(m) }
|
|
func (*Attr) ProtoMessage() {}
|
|
|
|
func (m *Attr) GetKey() string {
|
|
if m != nil && m.Key != nil {
|
|
return *m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Attr) GetStringValue() string {
|
|
if m != nil && m.StringValue != nil {
|
|
return *m.StringValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Attr) GetIntValue() int64 {
|
|
if m != nil && m.IntValue != nil {
|
|
return *m.IntValue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Attr) GetBoolValue() bool {
|
|
if m != nil && m.BoolValue != nil {
|
|
return *m.BoolValue
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QueryRequest struct {
|
|
DB *string `protobuf:"bytes,1,req" json:"DB,omitempty"`
|
|
Query *string `protobuf:"bytes,2,req" json:"Query,omitempty"`
|
|
Slices []uint64 `protobuf:"varint,3,rep" json:"Slices,omitempty"`
|
|
Profiles *bool `protobuf:"varint,4,opt" json:"Profiles,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *QueryRequest) Reset() { *m = QueryRequest{} }
|
|
func (m *QueryRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryRequest) ProtoMessage() {}
|
|
|
|
func (m *QueryRequest) GetDB() string {
|
|
if m != nil && m.DB != nil {
|
|
return *m.DB
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *QueryRequest) GetQuery() string {
|
|
if m != nil && m.Query != nil {
|
|
return *m.Query
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *QueryRequest) GetSlices() []uint64 {
|
|
if m != nil {
|
|
return m.Slices
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryRequest) GetProfiles() bool {
|
|
if m != nil && m.Profiles != nil {
|
|
return *m.Profiles
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QueryResponse struct {
|
|
Err *string `protobuf:"bytes,1,opt" json:"Err,omitempty"`
|
|
Bitmap *Bitmap `protobuf:"bytes,2,opt" json:"Bitmap,omitempty"`
|
|
N *uint64 `protobuf:"varint,3,opt" json:"N,omitempty"`
|
|
Pairs []*Pair `protobuf:"bytes,4,rep" json:"Pairs,omitempty"`
|
|
Profiles []*Profile `protobuf:"bytes,5,rep" json:"Profiles,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *QueryResponse) Reset() { *m = QueryResponse{} }
|
|
func (m *QueryResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryResponse) ProtoMessage() {}
|
|
|
|
func (m *QueryResponse) GetErr() string {
|
|
if m != nil && m.Err != nil {
|
|
return *m.Err
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *QueryResponse) GetBitmap() *Bitmap {
|
|
if m != nil {
|
|
return m.Bitmap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResponse) GetN() uint64 {
|
|
if m != nil && m.N != nil {
|
|
return *m.N
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *QueryResponse) GetPairs() []*Pair {
|
|
if m != nil {
|
|
return m.Pairs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResponse) GetProfiles() []*Profile {
|
|
if m != nil {
|
|
return m.Profiles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ImportRequest struct {
|
|
DB *string `protobuf:"bytes,1,req" json:"DB,omitempty"`
|
|
Frame *string `protobuf:"bytes,2,req" json:"Frame,omitempty"`
|
|
Slice *uint64 `protobuf:"varint,3,req" json:"Slice,omitempty"`
|
|
BitmapIDs []uint64 `protobuf:"varint,4,rep" json:"BitmapIDs,omitempty"`
|
|
ProfileIDs []uint64 `protobuf:"varint,5,rep" json:"ProfileIDs,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *ImportRequest) Reset() { *m = ImportRequest{} }
|
|
func (m *ImportRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ImportRequest) ProtoMessage() {}
|
|
|
|
func (m *ImportRequest) GetDB() string {
|
|
if m != nil && m.DB != nil {
|
|
return *m.DB
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ImportRequest) GetFrame() string {
|
|
if m != nil && m.Frame != nil {
|
|
return *m.Frame
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ImportRequest) GetSlice() uint64 {
|
|
if m != nil && m.Slice != nil {
|
|
return *m.Slice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ImportRequest) GetBitmapIDs() []uint64 {
|
|
if m != nil {
|
|
return m.BitmapIDs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ImportRequest) GetProfileIDs() []uint64 {
|
|
if m != nil {
|
|
return m.ProfileIDs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ImportResponse struct {
|
|
Err *string `protobuf:"bytes,1,opt" json:"Err,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *ImportResponse) Reset() { *m = ImportResponse{} }
|
|
func (m *ImportResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ImportResponse) ProtoMessage() {}
|
|
|
|
func (m *ImportResponse) GetErr() string {
|
|
if m != nil && m.Err != nil {
|
|
return *m.Err
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
}
|