MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / ior

Method ior

runcontainer.go:2254–2267  ·  view source on GitHub ↗
(a container)

Source from the content-addressed store, hash-verified

2252}
2253
2254func (rc *runContainer16) ior(a container) container {
2255 if rc.isFull() {
2256 return rc
2257 }
2258 switch c := a.(type) {
2259 case *runContainer16:
2260 return rc.inplaceUnion(c)
2261 case *arrayContainer:
2262 return rc.iorArray(c)
2263 case *bitmapContainer:
2264 return rc.orBitmapContainer(c)
2265 }
2266 panic("unsupported container type")
2267}
2268
2269func (rc *runContainer16) inplaceUnion(rc2 *runContainer16) container {
2270 for _, p := range rc2.iv {

Callers 1

lazyIORMethod · 0.95

Calls 4

isFullMethod · 0.95
inplaceUnionMethod · 0.95
iorArrayMethod · 0.95
orBitmapContainerMethod · 0.95

Tested by

no test coverage detected