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

Method andCardinality

arraycontainer.go:567–577  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

565}
566
567func (ac *arrayContainer) andCardinality(a container) int {
568 switch x := a.(type) {
569 case *arrayContainer:
570 return ac.andArrayCardinality(x)
571 case *bitmapContainer:
572 return x.andCardinality(ac)
573 case *runContainer16:
574 return x.andArrayCardinality(ac)
575 }
576 panic("unsupported container type")
577}
578
579func (ac *arrayContainer) intersects(a container) bool {
580 switch x := a.(type) {

Callers

nothing calls this directly

Calls 2

andArrayCardinalityMethod · 0.95
andCardinalityMethod · 0.65

Tested by

no test coverage detected