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

Function newBitmapContainerHeap

parallel.go:95–112  ·  view source on GitHub ↗
(bitmaps ...*Bitmap)

Source from the content-addressed store, hash-verified

93}
94
95func 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
114func repairAfterLazy(c container) container {
115 switch t := c.(type) {

Callers 2

ParHeapOrFunction · 0.85
ParAndFunction · 0.85

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…