Documentation
¶
Index ¶
- func IntersectionOfSkipList(lists ...*skiplist.SkipList) (res *skiplist.SkipList)
- func UnionOfSkipList(lists ...*skiplist.SkipList) (res *skiplist.SkipList)
- type IReverseIndex
- type SkipListReverseIndex
- func (idx SkipListReverseIndex) Add(doc types.Document)
- func (idx SkipListReverseIndex) Delete(IntId uint64, keyword *types.Keyword)
- func (idx SkipListReverseIndex) FilterByBits(bits uint64, onFlag uint64, offFlag uint64, orFlags []uint64) bool
- func (idx SkipListReverseIndex) Search(tq *types.TermQuery, onFlag, offFlag uint64, orFlags []uint64) []string
- type SkipListValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntersectionOfSkipList ¶
Types ¶
type IReverseIndex ¶
type SkipListReverseIndex ¶
type SkipListReverseIndex struct {
// contains filtered or unexported fields
}
倒排索引整体上是个Map,key是关键词KeyWord,value是倒排索引的列表(跳表实现)
func NewSkipListReverseIndex ¶
func NewSkipListReverseIndex(DocNumEstimate int) *SkipListReverseIndex
DocNumEstimate 预估的文档数量
func (SkipListReverseIndex) Add ¶
func (idx SkipListReverseIndex) Add(doc types.Document)
func (SkipListReverseIndex) Delete ¶
func (idx SkipListReverseIndex) Delete(IntId uint64, keyword *types.Keyword)
func (SkipListReverseIndex) FilterByBits ¶
type SkipListValue ¶
Click to show internal directories.
Click to hide internal directories.