Documentation ¶
Index ¶
- Constants
- type BitSet
- type Element
- type Iterator
- type SkipList
- func (sl *SkipList) Add(key document.DocId, value interface{})
- func (sl *SkipList) Contains(key document.DocId) (ok bool)
- func (sl *SkipList) Del(key document.DocId)
- func (sl *SkipList) Get(key document.DocId) (x *Element, err error)
- func (sl *SkipList) Iterator() *SkipListIterator
- func (sl *SkipList) Len() int
- type SkipListIterator
- type Stack
- type TreeNode
Constants ¶
View Source
const ( AddressBitsPerWord uint8 = 6 WordsPerSize document.DocId = 64 )
View Source
const ( DefaultMaxLevel = 12 DefaultProbability = 0x3FFF )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkipList ¶
type SkipList struct {
// contains filtered or unexported fields
}
func NewSkipList ¶
func (*SkipList) Iterator ¶
func (sl *SkipList) Iterator() *SkipListIterator
type SkipListIterator ¶
func NewSkipListIterator ¶
func NewSkipListIterator(element *Element) *SkipListIterator
func (*SkipListIterator) Current ¶
func (si *SkipListIterator) Current() *Element
func (*SkipListIterator) HasNext ¶
func (si *SkipListIterator) HasNext() bool
func (*SkipListIterator) Next ¶
func (si *SkipListIterator) Next()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.