You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that roaring64 doesn't have function containsRange.
Could you please give me some suggestions about how to use containsRange in roaring64?
/** * Check if all values from x (included) to y (excluded) are present*/boolcontainsRange(constuint64_t x, constuint64_t y) constnoexcept {
returnapi::roaring_bitmap_contains_range(&roaring, x, y);
}
The text was updated successfully, but these errors were encountered:
Roaring64Map internally uses a std::map of uint32_t for the high 32 bits of values, to a 32-bit Roaring bitmap containing the low 32 bits of values with the associated high 32 bits. This means that using roaring_bitmap_contains_range will only determine whether a specific 32-bit Roaring bitmap contains a given 32-bit range.
To determine whether a 64-bit range is fully present in the Roaring64Map, we would need to loop over all different high 32 bits of the range, and check the corresponding 32-bit Roaring bitmaps for subranges. See a similar implementation here.
It seems that
roaring64
doesn't have functioncontainsRange
.Could you please give me some suggestions about how to use
containsRange
inroaring64
?The text was updated successfully, but these errors were encountered: