Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultUpper = convert.Uint64ToBytes(math.MaxUint64) DefaultLower = convert.Uint64ToBytes(0) )
View Source
var EmptyFieldIterator = &emptyIterator{}
View Source
var ErrMalformed = errors.New("the data is malformed")
Functions ¶
This section is empty.
Types ¶
type CompositePostingValueFn ¶
type CompositePostingValueFn = func(term, value []byte, delegated kv.Iterator) (*PostingValue, error)
type FieldIterable ¶
type FieldIterator ¶
type FieldIterator interface {
Next() bool
Val() *PostingValue
Close() error
}
func NewMergedIterator ¶
func NewMergedIterator(merged []FieldIterator, fn SwitchFn) FieldIterator
type FieldIteratorTemplate ¶
type FieldIteratorTemplate struct {
// contains filtered or unexported fields
}
func (*FieldIteratorTemplate) Close ¶
func (f *FieldIteratorTemplate) Close() error
func (*FieldIteratorTemplate) Next ¶
func (f *FieldIteratorTemplate) Next() bool
func (*FieldIteratorTemplate) Val ¶
func (f *FieldIteratorTemplate) Val() *PostingValue
type FieldKey ¶
type FieldKey struct {
SeriesID common.SeriesID
IndexRuleID uint32
Analyzer databasev1.IndexRule_Analyzer
}
func (FieldKey) MarshalToStr ¶ added in v0.2.0
type GetSearcher ¶ added in v0.2.0
type GetSearcher func(location databasev1.IndexRule_Type) (Searcher, error)
type PostingValue ¶
type Searcher ¶
type Searcher interface {
FieldIterable
Match(fieldKey FieldKey, match []string) (list posting.List, err error)
MatchField(fieldKey FieldKey) (list posting.List, err error)
MatchTerms(field Field) (list posting.List, err error)
Range(fieldKey FieldKey, opts RangeOpts) (list posting.List, err error)
}
type Store ¶
type Store interface {
observability.Observable
io.Closer
Writer
Searcher
// Flush flushed memory data to disk
Flush() error
}
Click to show internal directories.
Click to hide internal directories.