(containers []container)
| 73 | } |
| 74 | |
| 75 | func (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 | |
| 95 | func newBitmapContainerHeap(bitmaps ...*Bitmap) bitmapContainerHeap { |
| 96 | // Initialize heap |
nothing calls this directly
no test coverage detected