postinglist

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostingList

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

func Deserialize

func Deserialize(blob []byte) (*PostingList, error)

func Difference

func Difference(x, y *PostingList) *PostingList

func Intersection

func Intersection(postingLists []*PostingList) *PostingList

func NewPostingList

func NewPostingList(
	pl []*posting.Posting,
) *PostingList

func PhraseMatch

func PhraseMatch(postingLists []*PostingList, relativePosition []uint32) *PostingList

func Union

func Union(postingLists []*PostingList) *PostingList

func (PostingList) Cursor

func (p PostingList) Cursor() *PostingListCursor

func (PostingList) EstimateSize

func (p PostingList) EstimateSize() int

func (PostingList) Len

func (p PostingList) Len() int

func (*PostingList) Merge

func (p *PostingList) Merge(other *PostingList)

func (PostingList) Serialize

func (p PostingList) Serialize() ([]byte, error)

func (*PostingList) String

func (p *PostingList) String() string

type PostingListCursor

type PostingListCursor struct {
	PostingList
	// contains filtered or unexported fields
}

func NewPostingListCursor

func NewPostingListCursor(p PostingList) *PostingListCursor

func (*PostingListCursor) Compare

func (p *PostingListCursor) Compare(other *PostingListCursor) int

func (*PostingListCursor) Next

func (p *PostingListCursor) Next() bool

func (*PostingListCursor) Skip

func (p *PostingListCursor) Skip(otherPosting *posting.Posting) bool

func (PostingListCursor) Value

func (p PostingListCursor) Value() *posting.Posting

Jump to

Keyboard shortcuts

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