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

Method and

bitmapcontainer.go:764–777  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

762}
763
764func (bc *bitmapContainer) and(a container) container {
765 switch x := a.(type) {
766 case *arrayContainer:
767 return bc.andArray(x)
768 case *bitmapContainer:
769 return bc.andBitmap(x)
770 case *runContainer16:
771 if x.isFull() {
772 return bc.clone()
773 }
774 return x.andBitmapContainer(bc)
775 }
776 panic("unsupported container type")
777}
778
779func (bc *bitmapContainer) andCardinality(a container) int {
780 switch x := a.(type) {

Callers

nothing calls this directly

Calls 5

andArrayMethod · 0.95
andBitmapMethod · 0.95
cloneMethod · 0.95
andBitmapContainerMethod · 0.80
isFullMethod · 0.65

Tested by

no test coverage detected