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

Method intersects

arraycontainer.go:579–589  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

577}
578
579func (ac *arrayContainer) intersects(a container) bool {
580 switch x := a.(type) {
581 case *arrayContainer:
582 return ac.intersectsArray(x)
583 case *bitmapContainer:
584 return x.intersects(ac)
585 case *runContainer16:
586 return x.intersects(ac)
587 }
588 panic("unsupported container type")
589}
590
591func (ac *arrayContainer) iand(a container) container {
592 switch x := a.(type) {

Callers

nothing calls this directly

Calls 2

intersectsArrayMethod · 0.95
intersectsMethod · 0.65

Tested by

no test coverage detected