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

Method and

arraycontainer.go:552–565  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

550}
551
552func (ac *arrayContainer) and(a container) container {
553 switch x := a.(type) {
554 case *arrayContainer:
555 return ac.andArray(x)
556 case *bitmapContainer:
557 return x.and(ac)
558 case *runContainer16:
559 if x.isFull() {
560 return ac.clone()
561 }
562 return x.andArray(ac)
563 }
564 panic("unsupported container type")
565}
566
567func (ac *arrayContainer) andCardinality(a container) int {
568 switch x := a.(type) {

Callers

nothing calls this directly

Calls 4

andArrayMethod · 0.95
cloneMethod · 0.95
andMethod · 0.65
isFullMethod · 0.65

Tested by

no test coverage detected