invertedindex

package
v0.0.0-...-6d8aef9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexElement

func NewIndexElement(
	field fieldname.FieldName,
	term term.Term,
	docID uint64,
	position uint32,
) *indexElement

Types

type InvertedIndex

type InvertedIndex struct {
	// key is term.Term
	// value is fieldindex.FieldIndex
	*redblacktree.Tree
	// contains filtered or unexported fields
}

func NewInvertedIndex

func NewInvertedIndex(segmentID int) *InvertedIndex

func (*InvertedIndex) Equal

func (i *InvertedIndex) Equal(other *InvertedIndex) bool

func (InvertedIndex) GetPartialIndex

func (i InvertedIndex) GetPartialIndex(conds []*termcond.TermCondition) *InvertedIndex

func (InvertedIndex) GetPostingListInFeature

func (i InvertedIndex) GetPostingListInFeature(feature *expression.FeatureSpec) *postinglist.PostingList

func (*InvertedIndex) Merge

func (i *InvertedIndex) Merge(other *InvertedIndex)

func (InvertedIndex) Search

func (InvertedIndex) SegmentID

func (i InvertedIndex) SegmentID() int

type InvertedIndexBuilder

type InvertedIndexBuilder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() *InvertedIndexBuilder

func (*InvertedIndexBuilder) AddDocument

func (b *InvertedIndexBuilder) AddDocument(doc *document.Document)

func (*InvertedIndexBuilder) Build

func (b *InvertedIndexBuilder) Build() *InvertedIndex

Jump to

Keyboard shortcuts

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