remove repairBitmaps from public iface

This commit is contained in:
Richard Artoul 2018-11-29 17:35:04 -05:00
parent 12d45415bb
commit 741f8e8b84
2 changed files with 2 additions and 6 deletions

View file

@ -156,7 +156,7 @@ func (sc *sliceContainers) Iterator(key uint64) (citer ContainerIterator, found
return &sliceIterator{e: sc, i: i}, found
}
func (sc *sliceContainers) RepairBitmaps() {
func (sc *sliceContainers) repairBitmaps() {
for _, c := range sc.containers {
if c.isBitmap() {
c.bitmapRepair()

View file

@ -98,10 +98,6 @@ type Containers interface {
Count() uint64
// RepairBitmaps will repair cardinality(n) values on bitmap containers after
// in-place operations.
RepairBitmaps()
//Reset will clear the containers collection to allow for recycling during snapshot
Reset()
}
@ -692,7 +688,7 @@ func (b *Bitmap) unionIntoTarget(target *Bitmap, others ...*Bitmap) {
// n (container cardinality) to fall out of sync, and then at the very end we perform
// a "Repair" to recalculate all the container values. That way we never popcount()
// an entire bitmap container more than once per bulk union operation.
target.Containers.RepairBitmaps()
target.Containers.(*sliceContainers).repairBitmaps()
}
// Difference returns the difference of b and other.