MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / or

Method or

bitmapcontainer.go:460–473  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

458}
459
460func (bc *bitmapContainer) or(a container) container {
461 switch x := a.(type) {
462 case *arrayContainer:
463 return bc.orArray(x)
464 case *bitmapContainer:
465 return bc.orBitmap(x)
466 case *runContainer16:
467 if x.isFull() {
468 return x.clone()
469 }
470 return x.orBitmapContainer(bc)
471 }
472 panic("unsupported container type")
473}
474
475func (bc *bitmapContainer) orCardinality(a container) int {
476 switch x := a.(type) {

Callers

nothing calls this directly

Calls 5

orArrayMethod · 0.95
orBitmapMethod · 0.95
orBitmapContainerMethod · 0.80
isFullMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected