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

Method lazyOR

bitmapcontainer.go:546–561  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

544}
545
546func (bc *bitmapContainer) lazyOR(a container) container {
547 switch x := a.(type) {
548 case *arrayContainer:
549 return bc.lazyORArray(x)
550 case *bitmapContainer:
551 return bc.lazyORBitmap(x)
552 case *runContainer16:
553 if x.isFull() {
554 return x.clone()
555 }
556 // TODO: implement lazy OR
557 return x.orBitmapContainer(bc)
558
559 }
560 panic("unsupported container type")
561}
562
563func (bc *bitmapContainer) orArray(value2 *arrayContainer) container {
564 answer := bc.clone().(*bitmapContainer)

Callers

nothing calls this directly

Calls 5

lazyORArrayMethod · 0.95
lazyORBitmapMethod · 0.95
orBitmapContainerMethod · 0.80
isFullMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected