Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Done = errors.New("no more items in iterator")
Done indicates an iterator has returned all items. https://github.com/GoogleCloudPlatform/google-cloud-go/wiki/Iterator-Guidelines
Functions ¶
This section is empty.
Types ¶
type IteratorWithContext ¶
type PriorityQueue ¶
func (*PriorityQueue[K, V, CTX]) Next ¶
func (pq *PriorityQueue[K, V, CTX]) Next() (_ K, _ V, _ CTX, err error)
type PriorityQueueI ¶
type PriorityQueueI[K any, V any, CTX any] interface { // Next returns the next key, value and context in sequence. // Returns Done as the error when the iterator is exhausted. Next() (K, V, CTX, error) }
func NewPriorityQueue ¶
func NewPriorityQueue[K any, V any, CTX any](comp skiplist.Comparator[K], iterators []IteratorWithContext[K, V, CTX]) (PriorityQueueI[K, V, CTX], error)
Click to show internal directories.
Click to hide internal directories.