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

Method intersects

bitmapcontainer.go:791–802  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

789}
790
791func (bc *bitmapContainer) intersects(a container) bool {
792 switch x := a.(type) {
793 case *arrayContainer:
794 return bc.intersectsArray(x)
795 case *bitmapContainer:
796 return bc.intersectsBitmap(x)
797 case *runContainer16:
798 return x.intersects(bc)
799
800 }
801 panic("unsupported container type")
802}
803
804func (bc *bitmapContainer) iand(a container) container {
805 switch x := a.(type) {

Callers

nothing calls this directly

Calls 3

intersectsArrayMethod · 0.95
intersectsBitmapMethod · 0.95
intersectsMethod · 0.65

Tested by

no test coverage detected