Documentation
¶
Index ¶
- type Item
- type ItemWithIndex
- type Queue
- func (l *Queue) Cap() int
- func (l *Queue) Insert(id uint64, distance float32) int
- func (l *Queue) Items(k int) ([]uint64, []float32)
- func (*Queue) Last() (Item, bool)
- func (l *Queue) Len() int
- func (l *Queue) Pop() Item
- func (l *Queue) ReSort(id uint64, distance float32)
- func (l *Queue) Reset()
- func (l *Queue) ResetCap(capacity int)
- func (l *Queue) Top() Item
- type QueueWithIndex
- func (l *QueueWithIndex) Cap() int
- func (l *QueueWithIndex) Insert(id uint64, index uint64, distance float32) int
- func (l *QueueWithIndex) Items(k int) ([]uint64, []float32)
- func (*QueueWithIndex) Last() (Item, bool)
- func (l *QueueWithIndex) Len() int
- func (l *QueueWithIndex) Pop() ItemWithIndex
- func (l *QueueWithIndex) ReSort(id uint64, distance float32)
- func (l *QueueWithIndex) Reset()
- func (l *QueueWithIndex) ResetCap(capacity int)
- func (l *QueueWithIndex) Top() ItemWithIndex
- type SortedQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemWithIndex ¶
type QueueWithIndex ¶
type QueueWithIndex struct {
// contains filtered or unexported fields
}
func NewMaxWithIndex ¶
func NewMaxWithIndex(capacity int) *QueueWithIndex
func NewMinWithIndex ¶
func NewMinWithIndex(capacity int) *QueueWithIndex
func (*QueueWithIndex) Cap ¶
func (l *QueueWithIndex) Cap() int
func (*QueueWithIndex) Insert ¶
func (l *QueueWithIndex) Insert(id uint64, index uint64, distance float32) int
func (*QueueWithIndex) Items ¶ added in v1.19.7
func (l *QueueWithIndex) Items(k int) ([]uint64, []float32)
func (*QueueWithIndex) Last ¶ added in v1.19.7
func (*QueueWithIndex) Last() (Item, bool)
func (*QueueWithIndex) Len ¶
func (l *QueueWithIndex) Len() int
func (*QueueWithIndex) Pop ¶
func (l *QueueWithIndex) Pop() ItemWithIndex
func (*QueueWithIndex) ReSort ¶ added in v1.19.7
func (l *QueueWithIndex) ReSort(id uint64, distance float32)
func (*QueueWithIndex) Reset ¶
func (l *QueueWithIndex) Reset()
func (*QueueWithIndex) ResetCap ¶
func (l *QueueWithIndex) ResetCap(capacity int)
func (*QueueWithIndex) Top ¶
func (l *QueueWithIndex) Top() ItemWithIndex
Click to show internal directories.
Click to hide internal directories.