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

Method andBitmap

arraycontainer.go:793–804  ·  view source on GitHub ↗
(value2 *bitmapContainer)

Source from the content-addressed store, hash-verified

791}
792
793func (ac *arrayContainer) andBitmap(value2 *bitmapContainer) container {
794 desiredcapacity := ac.getCardinality()
795 answer := newArrayContainerCapacity(desiredcapacity)
796 answer.content = answer.content[:desiredcapacity]
797 pos := 0
798 for _, v := range ac.content {
799 answer.content[pos] = v
800 pos += int(value2.bitValue(v))
801 }
802 answer.content = answer.content[:pos]
803 return answer
804}
805
806func (ac *arrayContainer) iandNotBitmap(value2 *bitmapContainer) container {
807 pos := 0

Callers 2

TestArrayContainerEtc070Function · 0.45
andBitmapContainerMethod · 0.45

Calls 3

getCardinalityMethod · 0.95
bitValueMethod · 0.80

Tested by 1

TestArrayContainerEtc070Function · 0.36