mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
remove repairBitmaps from public iface
This commit is contained in:
parent
12d45415bb
commit
741f8e8b84
2 changed files with 2 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue