Documentation ¶
Index ¶
- func NewIndexElement(field fieldname.FieldName, term term.Term, docID uint64, position uint32) *indexElement
- type InvertedIndex
- func (i *InvertedIndex) Equal(other *InvertedIndex) bool
- func (i InvertedIndex) GetPartialIndex(conds []*termcond.TermCondition) *InvertedIndex
- func (i InvertedIndex) GetPostingListInFeature(feature *expression.FeatureSpec) *postinglist.PostingList
- func (i *InvertedIndex) Merge(other *InvertedIndex)
- func (i InvertedIndex) Search(exp *expression.Expression) *postinglist.PostingList
- func (i InvertedIndex) SegmentID() int
- type InvertedIndexBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (i InvertedIndex) Search(exp *expression.Expression) *postinglist.PostingList
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
Click to show internal directories.
Click to hide internal directories.