Introduce heed codecs to retrieve the length of roaring bitmaps

This commit is contained in:
Kerollmops 2021-02-18 14:24:30 +01:00
parent fcfb39c5de
commit 8d710c5130
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
9 changed files with 130 additions and 4 deletions

View file

@ -8,7 +8,7 @@ use roaring::RoaringBitmap;
/// This is the limit where using a byteorder became less size efficient
/// than using a direct roaring encoding, it is also the point where we are able
/// to determine the encoding used only by using the array of bytes length.
const THRESHOLD: usize = 7;
pub const THRESHOLD: usize = 7;
/// A conditionnal codec that either use the RoaringBitmap
/// or a lighter ByteOrder en/decoding method.

View file

@ -1,5 +1,5 @@
mod bo_roaring_bitmap_codec;
mod cbo_roaring_bitmap_codec;
pub mod cbo_roaring_bitmap_codec;
mod roaring_bitmap_codec;
pub use self::bo_roaring_bitmap_codec::BoRoaringBitmapCodec;