remove rename of columnIDs and add comment

This commit is contained in:
Matt Jaffee 2019-03-22 16:24:08 -05:00
parent e7f65cf7be
commit 53dfa9b7f2
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -2466,11 +2466,11 @@ func (f *fragment) mustSetBits(rowID uint64, columnIDs ...uint64) {
}
func addToBitmap(bm *roaring.Bitmap, rowID uint64, columnIDs ...uint64) {
// we'll reuse the columnIDs slice and fill it with positions for DirectAddN
for i, c := range columnIDs {
columnIDs[i] = rowID*ShardWidth + c%ShardWidth
}
positions := columnIDs
bm.DirectAddN(positions...)
bm.DirectAddN(columnIDs...)
}
// Test Various methods of retrieving RowIDs