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

Method lazyOR

arraycontainer.go:478–491  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

476}
477
478func (ac *arrayContainer) lazyOR(a container) container {
479 switch x := a.(type) {
480 case *arrayContainer:
481 return ac.lazyorArray(x)
482 case *bitmapContainer:
483 return a.lazyOR(ac)
484 case *runContainer16:
485 if x.isFull() {
486 return x.clone()
487 }
488 return x.orArray(ac)
489 }
490 panic("unsupported container type")
491}
492
493func (ac *arrayContainer) orArray(value2 *arrayContainer) container {
494 value1 := ac

Callers

nothing calls this directly

Calls 5

lazyorArrayMethod · 0.95
lazyORMethod · 0.65
isFullMethod · 0.65
cloneMethod · 0.65
orArrayMethod · 0.45

Tested by

no test coverage detected