From fcfb39c5de6ce70d59acb2ef28fdd1712136dacf Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Thu, 18 Feb 2021 13:56:28 +0100 Subject: [PATCH] Move the RoaringBitmap related codecs into a module --- milli/src/heed_codec/mod.rs | 8 ++------ .../{ => roaring_bitmap}/bo_roaring_bitmap_codec.rs | 0 .../{ => roaring_bitmap}/cbo_roaring_bitmap_codec.rs | 0 milli/src/heed_codec/roaring_bitmap/mod.rs | 7 +++++++ .../{ => roaring_bitmap}/roaring_bitmap_codec.rs | 0 5 files changed, 9 insertions(+), 6 deletions(-) rename milli/src/heed_codec/{ => roaring_bitmap}/bo_roaring_bitmap_codec.rs (100%) rename milli/src/heed_codec/{ => roaring_bitmap}/cbo_roaring_bitmap_codec.rs (100%) create mode 100644 milli/src/heed_codec/roaring_bitmap/mod.rs rename milli/src/heed_codec/{ => roaring_bitmap}/roaring_bitmap_codec.rs (100%) diff --git a/milli/src/heed_codec/mod.rs b/milli/src/heed_codec/mod.rs index e7b8cf256..ff8285357 100644 --- a/milli/src/heed_codec/mod.rs +++ b/milli/src/heed_codec/mod.rs @@ -1,14 +1,10 @@ mod beu32_str_codec; -mod bo_roaring_bitmap_codec; -mod cbo_roaring_bitmap_codec; mod obkv_codec; -mod roaring_bitmap_codec; +mod roaring_bitmap; mod str_str_u8_codec; pub mod facet; pub use self::beu32_str_codec::BEU32StrCodec; -pub use self::bo_roaring_bitmap_codec::BoRoaringBitmapCodec; -pub use self::cbo_roaring_bitmap_codec::CboRoaringBitmapCodec; pub use self::obkv_codec::ObkvCodec; -pub use self::roaring_bitmap_codec::RoaringBitmapCodec; +pub use self::roaring_bitmap::{BoRoaringBitmapCodec, CboRoaringBitmapCodec, RoaringBitmapCodec}; pub use self::str_str_u8_codec::StrStrU8Codec; diff --git a/milli/src/heed_codec/bo_roaring_bitmap_codec.rs b/milli/src/heed_codec/roaring_bitmap/bo_roaring_bitmap_codec.rs similarity index 100% rename from milli/src/heed_codec/bo_roaring_bitmap_codec.rs rename to milli/src/heed_codec/roaring_bitmap/bo_roaring_bitmap_codec.rs diff --git a/milli/src/heed_codec/cbo_roaring_bitmap_codec.rs b/milli/src/heed_codec/roaring_bitmap/cbo_roaring_bitmap_codec.rs similarity index 100% rename from milli/src/heed_codec/cbo_roaring_bitmap_codec.rs rename to milli/src/heed_codec/roaring_bitmap/cbo_roaring_bitmap_codec.rs diff --git a/milli/src/heed_codec/roaring_bitmap/mod.rs b/milli/src/heed_codec/roaring_bitmap/mod.rs new file mode 100644 index 000000000..866567637 --- /dev/null +++ b/milli/src/heed_codec/roaring_bitmap/mod.rs @@ -0,0 +1,7 @@ +mod bo_roaring_bitmap_codec; +mod cbo_roaring_bitmap_codec; +mod roaring_bitmap_codec; + +pub use self::bo_roaring_bitmap_codec::BoRoaringBitmapCodec; +pub use self::cbo_roaring_bitmap_codec::CboRoaringBitmapCodec; +pub use self::roaring_bitmap_codec::RoaringBitmapCodec; diff --git a/milli/src/heed_codec/roaring_bitmap_codec.rs b/milli/src/heed_codec/roaring_bitmap/roaring_bitmap_codec.rs similarity index 100% rename from milli/src/heed_codec/roaring_bitmap_codec.rs rename to milli/src/heed_codec/roaring_bitmap/roaring_bitmap_codec.rs