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

Method lazyIOR

arraycontainer.go:447–461  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

445}
446
447func (ac *arrayContainer) lazyIOR(a container) container {
448 switch x := a.(type) {
449 case *arrayContainer:
450 return ac.lazyIorArray(x)
451 case *bitmapContainer:
452 return ac.lazyIorBitmap(x)
453 case *runContainer16:
454 if x.isFull() {
455 return x.clone()
456 }
457 return ac.lazyIorRun16(x)
458
459 }
460 panic("unsupported container type")
461}
462
463func (ac *arrayContainer) lazyIorArray(ac2 *arrayContainer) container {
464 // TODO actually make this lazy

Callers

nothing calls this directly

Calls 5

lazyIorArrayMethod · 0.95
lazyIorBitmapMethod · 0.95
lazyIorRun16Method · 0.95
isFullMethod · 0.65
cloneMethod · 0.65

Tested by

no test coverage detected