mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
remove rename of columnIDs and add comment
This commit is contained in:
parent
e7f65cf7be
commit
53dfa9b7f2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue