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

Method iremoveRange

bitmapcontainer.go:429–435  ·  view source on GitHub ↗

remove all values in range [firstOfRange,lastOfRange)

(firstOfRange, lastOfRange int)

Source from the content-addressed store, hash-verified

427
428// remove all values in range [firstOfRange,lastOfRange)
429func (bc *bitmapContainer) iremoveRange(firstOfRange, lastOfRange int) container {
430 bc.cardinality += resetBitmapRangeAndCardinalityChange(bc.bitmap, firstOfRange, lastOfRange)
431 if bc.getCardinality() <= arrayDefaultMaxSize {
432 return bc.toArrayContainer()
433 }
434 return bc
435}
436
437// flip all values in range [firstOfRange,endx)
438func (bc *bitmapContainer) inot(firstOfRange, endx int) container {

Callers

nothing calls this directly

Calls 3

getCardinalityMethod · 0.95
toArrayContainerMethod · 0.95

Tested by

no test coverage detected