Documentation ¶
Index ¶
- type PostingList
- func Deserialize(blob []byte) (*PostingList, error)
- func Difference(x, y *PostingList) *PostingList
- func Intersection(postingLists []*PostingList) *PostingList
- func NewPostingList(pl []*posting.Posting) *PostingList
- func PhraseMatch(postingLists []*PostingList, relativePosition []uint32) *PostingList
- func Union(postingLists []*PostingList) *PostingList
- type PostingListCursor
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
Click to show internal directories.
Click to hide internal directories.