MCPcopy
hub / github.com/RoaringBitmap/roaring / Next

Method Next

parallel.go:75–93  ·  view source on GitHub ↗
(containers []container)

Source from the content-addressed store, hash-verified

73}
74
75func (h *bitmapContainerHeap) Next(containers []container) multipleContainers {
76 if h.Len() == 0 {
77 return multipleContainers{}
78 }
79
80 key, container := h.popIncrementing()
81 containers = append(containers, container)
82
83 for h.Len() > 0 && key == h.Peek().key {
84 _, container = h.popIncrementing()
85 containers = append(containers, container)
86 }
87
88 return multipleContainers{
89 key,
90 containers,
91 -1,
92 }
93}
94
95func newBitmapContainerHeap(bitmaps ...*Bitmap) bitmapContainerHeap {
96 // Initialize heap

Callers

nothing calls this directly

Calls 3

LenMethod · 0.95
popIncrementingMethod · 0.95
PeekMethod · 0.95

Tested by

no test coverage detected