indexheaderpb

package
v0.0.0-...-748a726 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSparse = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSparse   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type PostingOffset

type PostingOffset struct {
	Value    string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	TableOff int64  `protobuf:"varint,2,opt,name=tableOff,proto3" json:"tableOff,omitempty"`
}

PostingOffset stores the label value and its offset in the postings offset table relative to the start of the table.

func (*PostingOffset) Descriptor

func (*PostingOffset) Descriptor() ([]byte, []int)

func (*PostingOffset) Equal

func (this *PostingOffset) Equal(that interface{}) bool

func (*PostingOffset) GetTableOff

func (m *PostingOffset) GetTableOff() int64

func (*PostingOffset) GetValue

func (m *PostingOffset) GetValue() string

func (*PostingOffset) GoString

func (this *PostingOffset) GoString() string

func (*PostingOffset) Marshal

func (m *PostingOffset) Marshal() (dAtA []byte, err error)

func (*PostingOffset) MarshalTo

func (m *PostingOffset) MarshalTo(dAtA []byte) (int, error)

func (*PostingOffset) MarshalToSizedBuffer

func (m *PostingOffset) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostingOffset) ProtoMessage

func (*PostingOffset) ProtoMessage()

func (*PostingOffset) Reset

func (m *PostingOffset) Reset()

func (*PostingOffset) Size

func (m *PostingOffset) Size() (n int)

func (*PostingOffset) String

func (this *PostingOffset) String() string

func (*PostingOffset) Unmarshal

func (m *PostingOffset) Unmarshal(dAtA []byte) error

func (*PostingOffset) XXX_DiscardUnknown

func (m *PostingOffset) XXX_DiscardUnknown()

func (*PostingOffset) XXX_Marshal

func (m *PostingOffset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostingOffset) XXX_Merge

func (m *PostingOffset) XXX_Merge(src proto.Message)

func (*PostingOffset) XXX_Size

func (m *PostingOffset) XXX_Size() int

func (*PostingOffset) XXX_Unmarshal

func (m *PostingOffset) XXX_Unmarshal(b []byte) error

type PostingOffsetTable

type PostingOffsetTable struct {
	// Postings is a map of label names -> PostingValueOffsets
	Postings map[string]*PostingValueOffsets `` /* 157-byte string literal not displayed */
}

func (*PostingOffsetTable) Descriptor

func (*PostingOffsetTable) Descriptor() ([]byte, []int)

func (*PostingOffsetTable) Equal

func (this *PostingOffsetTable) Equal(that interface{}) bool

func (*PostingOffsetTable) GetPostings

func (m *PostingOffsetTable) GetPostings() map[string]*PostingValueOffsets

func (*PostingOffsetTable) GoString

func (this *PostingOffsetTable) GoString() string

func (*PostingOffsetTable) Marshal

func (m *PostingOffsetTable) Marshal() (dAtA []byte, err error)

func (*PostingOffsetTable) MarshalTo

func (m *PostingOffsetTable) MarshalTo(dAtA []byte) (int, error)

func (*PostingOffsetTable) MarshalToSizedBuffer

func (m *PostingOffsetTable) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostingOffsetTable) ProtoMessage

func (*PostingOffsetTable) ProtoMessage()

func (*PostingOffsetTable) Reset

func (m *PostingOffsetTable) Reset()

func (*PostingOffsetTable) Size

func (m *PostingOffsetTable) Size() (n int)

func (*PostingOffsetTable) String

func (this *PostingOffsetTable) String() string

func (*PostingOffsetTable) Unmarshal

func (m *PostingOffsetTable) Unmarshal(dAtA []byte) error

func (*PostingOffsetTable) XXX_DiscardUnknown

func (m *PostingOffsetTable) XXX_DiscardUnknown()

func (*PostingOffsetTable) XXX_Marshal

func (m *PostingOffsetTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostingOffsetTable) XXX_Merge

func (m *PostingOffsetTable) XXX_Merge(src proto.Message)

func (*PostingOffsetTable) XXX_Size

func (m *PostingOffsetTable) XXX_Size() int

func (*PostingOffsetTable) XXX_Unmarshal

func (m *PostingOffsetTable) XXX_Unmarshal(b []byte) error

type PostingValueOffsets

type PostingValueOffsets struct {
	Offsets []*PostingOffset `protobuf:"bytes,1,rep,name=offsets,proto3" json:"offsets,omitempty"`
	// LastValOffset is the offset of the last value for this label name relative to the start of the postings offset table.
	LastValOffset int64 `protobuf:"varint,2,opt,name=lastValOffset,proto3" json:"lastValOffset,omitempty"`
}

PostingValueOffsets stores a list of the first, last, and every 32nd (config default) PostingOffset for this label name.

func (*PostingValueOffsets) Descriptor

func (*PostingValueOffsets) Descriptor() ([]byte, []int)

func (*PostingValueOffsets) Equal

func (this *PostingValueOffsets) Equal(that interface{}) bool

func (*PostingValueOffsets) GetLastValOffset

func (m *PostingValueOffsets) GetLastValOffset() int64

func (*PostingValueOffsets) GetOffsets

func (m *PostingValueOffsets) GetOffsets() []*PostingOffset

func (*PostingValueOffsets) GoString

func (this *PostingValueOffsets) GoString() string

func (*PostingValueOffsets) Marshal

func (m *PostingValueOffsets) Marshal() (dAtA []byte, err error)

func (*PostingValueOffsets) MarshalTo

func (m *PostingValueOffsets) MarshalTo(dAtA []byte) (int, error)

func (*PostingValueOffsets) MarshalToSizedBuffer

func (m *PostingValueOffsets) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostingValueOffsets) ProtoMessage

func (*PostingValueOffsets) ProtoMessage()

func (*PostingValueOffsets) Reset

func (m *PostingValueOffsets) Reset()

func (*PostingValueOffsets) Size

func (m *PostingValueOffsets) Size() (n int)

func (*PostingValueOffsets) String

func (this *PostingValueOffsets) String() string

func (*PostingValueOffsets) Unmarshal

func (m *PostingValueOffsets) Unmarshal(dAtA []byte) error

func (*PostingValueOffsets) XXX_DiscardUnknown

func (m *PostingValueOffsets) XXX_DiscardUnknown()

func (*PostingValueOffsets) XXX_Marshal

func (m *PostingValueOffsets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostingValueOffsets) XXX_Merge

func (m *PostingValueOffsets) XXX_Merge(src proto.Message)

func (*PostingValueOffsets) XXX_Size

func (m *PostingValueOffsets) XXX_Size() int

func (*PostingValueOffsets) XXX_Unmarshal

func (m *PostingValueOffsets) XXX_Unmarshal(b []byte) error

type Sparse

type Sparse struct {
	Symbols             *Symbols            `protobuf:"bytes,1,opt,name=symbols,proto3" json:"symbols,omitempty"`
	PostingsOffsetTable *PostingOffsetTable `protobuf:"bytes,2,opt,name=postingsOffsetTable,proto3" json:"postingsOffsetTable,omitempty"`
}

func (*Sparse) Descriptor

func (*Sparse) Descriptor() ([]byte, []int)

func (*Sparse) Equal

func (this *Sparse) Equal(that interface{}) bool

func (*Sparse) GetPostingsOffsetTable

func (m *Sparse) GetPostingsOffsetTable() *PostingOffsetTable

func (*Sparse) GetSymbols

func (m *Sparse) GetSymbols() *Symbols

func (*Sparse) GoString

func (this *Sparse) GoString() string

func (*Sparse) Marshal

func (m *Sparse) Marshal() (dAtA []byte, err error)

func (*Sparse) MarshalTo

func (m *Sparse) MarshalTo(dAtA []byte) (int, error)

func (*Sparse) MarshalToSizedBuffer

func (m *Sparse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Sparse) ProtoMessage

func (*Sparse) ProtoMessage()

func (*Sparse) Reset

func (m *Sparse) Reset()

func (*Sparse) Size

func (m *Sparse) Size() (n int)

func (*Sparse) String

func (this *Sparse) String() string

func (*Sparse) Unmarshal

func (m *Sparse) Unmarshal(dAtA []byte) error

func (*Sparse) XXX_DiscardUnknown

func (m *Sparse) XXX_DiscardUnknown()

func (*Sparse) XXX_Marshal

func (m *Sparse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sparse) XXX_Merge

func (m *Sparse) XXX_Merge(src proto.Message)

func (*Sparse) XXX_Size

func (m *Sparse) XXX_Size() int

func (*Sparse) XXX_Unmarshal

func (m *Sparse) XXX_Unmarshal(b []byte) error

type Symbols

type Symbols struct {
	Offsets      []int64 `protobuf:"varint,1,rep,packed,name=offsets,proto3" json:"offsets,omitempty"`
	SymbolsCount int64   `protobuf:"varint,2,opt,name=symbolsCount,proto3" json:"symbolsCount,omitempty"`
}

func (*Symbols) Descriptor

func (*Symbols) Descriptor() ([]byte, []int)

func (*Symbols) Equal

func (this *Symbols) Equal(that interface{}) bool

func (*Symbols) GetOffsets

func (m *Symbols) GetOffsets() []int64

func (*Symbols) GetSymbolsCount

func (m *Symbols) GetSymbolsCount() int64

func (*Symbols) GoString

func (this *Symbols) GoString() string

func (*Symbols) Marshal

func (m *Symbols) Marshal() (dAtA []byte, err error)

func (*Symbols) MarshalTo

func (m *Symbols) MarshalTo(dAtA []byte) (int, error)

func (*Symbols) MarshalToSizedBuffer

func (m *Symbols) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Symbols) ProtoMessage

func (*Symbols) ProtoMessage()

func (*Symbols) Reset

func (m *Symbols) Reset()

func (*Symbols) Size

func (m *Symbols) Size() (n int)

func (*Symbols) String

func (this *Symbols) String() string

func (*Symbols) Unmarshal

func (m *Symbols) Unmarshal(dAtA []byte) error

func (*Symbols) XXX_DiscardUnknown

func (m *Symbols) XXX_DiscardUnknown()

func (*Symbols) XXX_Marshal

func (m *Symbols) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Symbols) XXX_Merge

func (m *Symbols) XXX_Merge(src proto.Message)

func (*Symbols) XXX_Size

func (m *Symbols) XXX_Size() int

func (*Symbols) XXX_Unmarshal

func (m *Symbols) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL