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

Method or

arraycontainer.go:346–359  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

344}
345
346func (ac *arrayContainer) or(a container) container {
347 switch x := a.(type) {
348 case *arrayContainer:
349 return ac.orArray(x)
350 case *bitmapContainer:
351 return x.orArray(ac)
352 case *runContainer16:
353 if x.isFull() {
354 return x.clone()
355 }
356 return x.orArray(ac)
357 }
358 panic("unsupported container type")
359}
360
361func (ac *arrayContainer) orCardinality(a container) int {
362 switch x := a.(type) {

Callers

nothing calls this directly

Calls 3

orArrayMethod · 0.95
isFullMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected