updated the Count cache on set operations

This commit is contained in:
Todd Gruben 2015-12-11 13:19:19 -06:00
parent 1fb85fd0e3
commit eb4267d4ab

View file

@ -150,6 +150,7 @@ func (e *Executor) executeDifferenceSlice(db string, c *pql.Difference, slice ui
other = other.Difference(bm)
}
}
other.SetCount(other.BitCount())
return other, nil
}
@ -178,6 +179,7 @@ func (e *Executor) executeIntersectSlice(db string, c *pql.Intersect, slice uint
other = other.Intersect(bm)
}
}
other.SetCount(other.BitCount())
return other, nil
}
@ -201,6 +203,7 @@ func (e *Executor) executeUnionSlice(db string, c *pql.Union, slice uint64) (*Bi
other = other.Union(bm)
}
}
other.SetCount(other.BitCount())
return other, nil
}