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

Method toBitmapContainer

runcontainer.go:2631–2639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2629}
2630
2631func (rc *runContainer16) toBitmapContainer() *bitmapContainer {
2632 bc := newBitmapContainer()
2633 bc.cardinality = 0
2634 for i := range rc.iv {
2635 bc.cardinality += rc.iv[i].runlen()
2636 bc.iaddRange(int(rc.iv[i].start), int(rc.iv[i].last())+1)
2637 }
2638 return bc
2639}
2640
2641func (rc *runContainer16) iandNotRunContainer16(x2 *runContainer16) container {
2642 // TODO: check size and optimize the return value

Callers 15

ixorArrayMethod · 0.95
ixorRunContainer16Method · 0.95
andNotArrayMethod · 0.95
andNotBitmapMethod · 0.95
iandNotArrayMethod · 0.95
iandNotBitmapMethod · 0.95
xorRunContainer16Method · 0.95
xorArrayMethod · 0.95
xorBitmapMethod · 0.95
iandArrayMethod · 0.45
ixorArrayMethod · 0.45
ixorRun16Method · 0.45

Calls 4

newBitmapContainerFunction · 0.85
runlenMethod · 0.80
lastMethod · 0.80
iaddRangeMethod · 0.65

Tested by 3

TestBitmapCOWFunction · 0.36
TestBitmapFunction · 0.36
TestRoaringContainerFunction · 0.36