Documentation
¶
Overview ¶
Package posting implements a posting list contains a list of document ids.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrListEmpty = errors.New("postings list is empty")
ErrListEmpty indicates the postings list is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List interface {
Contains(id common.ItemID) bool
IsEmpty() bool
Max() (common.ItemID, error)
Len() int
Iterator() Iterator
Clone() List
Equal(other List) bool
Insert(i common.ItemID)
Intersect(other List) error
Difference(other List) error
Union(other List) error
UnionMany(others []List) error
AddIterator(iter Iterator) error
AddRange(min, max common.ItemID) error
RemoveRange(min, max common.ItemID) error
Reset()
ToSlice() []common.ItemID
Marshall() ([]byte, error)
Unmarshall(data []byte) error
SizeInBytes() int64
}
List is a collection of common.ItemID.
Click to show internal directories.
Click to hide internal directories.