082a5b0b03
now can track array positions for field values stored fields now include this in the key and the back index now uses protobufs to simplify serialization closes #73
99 lines
2.6 KiB
Go
99 lines
2.6 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: upside_down.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package upside_down is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
upside_down.proto
|
|
|
|
It has these top-level messages:
|
|
BackIndexTermEntry
|
|
BackIndexStoreEntry
|
|
BackIndexRowValue
|
|
*/
|
|
package upside_down
|
|
|
|
import proto "code.google.com/p/goprotobuf/proto"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = math.Inf
|
|
|
|
type BackIndexTermEntry struct {
|
|
Term *string `protobuf:"bytes,1,req,name=term" json:"term,omitempty"`
|
|
Field *uint32 `protobuf:"varint,2,req,name=field" json:"field,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *BackIndexTermEntry) Reset() { *m = BackIndexTermEntry{} }
|
|
func (m *BackIndexTermEntry) String() string { return proto.CompactTextString(m) }
|
|
func (*BackIndexTermEntry) ProtoMessage() {}
|
|
|
|
func (m *BackIndexTermEntry) GetTerm() string {
|
|
if m != nil && m.Term != nil {
|
|
return *m.Term
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BackIndexTermEntry) GetField() uint32 {
|
|
if m != nil && m.Field != nil {
|
|
return *m.Field
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BackIndexStoreEntry struct {
|
|
Field *uint32 `protobuf:"varint,1,req,name=field" json:"field,omitempty"`
|
|
ArrayPositions []uint64 `protobuf:"varint,2,rep,name=arrayPositions" json:"arrayPositions,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *BackIndexStoreEntry) Reset() { *m = BackIndexStoreEntry{} }
|
|
func (m *BackIndexStoreEntry) String() string { return proto.CompactTextString(m) }
|
|
func (*BackIndexStoreEntry) ProtoMessage() {}
|
|
|
|
func (m *BackIndexStoreEntry) GetField() uint32 {
|
|
if m != nil && m.Field != nil {
|
|
return *m.Field
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *BackIndexStoreEntry) GetArrayPositions() []uint64 {
|
|
if m != nil {
|
|
return m.ArrayPositions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BackIndexRowValue struct {
|
|
TermEntries []*BackIndexTermEntry `protobuf:"bytes,1,rep,name=termEntries" json:"termEntries,omitempty"`
|
|
StoredEntries []*BackIndexStoreEntry `protobuf:"bytes,2,rep,name=storedEntries" json:"storedEntries,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *BackIndexRowValue) Reset() { *m = BackIndexRowValue{} }
|
|
func (m *BackIndexRowValue) String() string { return proto.CompactTextString(m) }
|
|
func (*BackIndexRowValue) ProtoMessage() {}
|
|
|
|
func (m *BackIndexRowValue) GetTermEntries() []*BackIndexTermEntry {
|
|
if m != nil {
|
|
return m.TermEntries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BackIndexRowValue) GetStoredEntries() []*BackIndexStoreEntry {
|
|
if m != nil {
|
|
return m.StoredEntries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
}
|