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

Method Add

BitSliceIndexing/bsi.go:822–828  ·  view source on GitHub ↗

Add - In-place sum the contents of another BSI with this BSI, column wise.

(other *BSI)

Source from the content-addressed store, hash-verified

820
821// Add - In-place sum the contents of another BSI with this BSI, column wise.
822func (b *BSI) Add(other *BSI) {
823
824 b.eBM.Or(other.eBM)
825 for i := 0; i < len(other.bA); i++ {
826 b.addDigit(other.bA[i], i)
827 }
828}
829
830func (b *BSI) addDigit(foundSet *roaring.Bitmap, i int) {
831

Callers 8

TestAddFunction · 0.45
SetValueMethod · 0.45
parallelExecutorFunction · 0.45
MinMaxMethod · 0.45
SumMethod · 0.45
ParOrMethod · 0.45
ClearValuesMethod · 0.45

Calls 2

addDigitMethod · 0.95
OrMethod · 0.45

Tested by 1

TestAddFunction · 0.36