(bitmaps ...*Bitmap)
| 93 | } |
| 94 | |
| 95 | func newBitmapContainerHeap(bitmaps ...*Bitmap) bitmapContainerHeap { |
| 96 | // Initialize heap |
| 97 | var h bitmapContainerHeap = make([]bitmapContainerKey, 0, len(bitmaps)) |
| 98 | for _, bitmap := range bitmaps { |
| 99 | if !bitmap.IsEmpty() { |
| 100 | key := bitmapContainerKey{ |
| 101 | bitmap.highlowcontainer.keys[0], |
| 102 | 0, |
| 103 | bitmap, |
| 104 | } |
| 105 | h = append(h, key) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | heap.Init(&h) |
| 110 | |
| 111 | return h |
| 112 | } |
| 113 | |
| 114 | func repairAfterLazy(c container) container { |
| 115 | switch t := c.(type) { |