feat: introduce roaring bitmap to inverted index (#219)

This commit is contained in:
Zhenchi
2025-02-27 14:52:10 +08:00
committed by GitHub
parent 072ce58050
commit f8bd7fabb9
7 changed files with 671 additions and 126 deletions
@@ -63,6 +63,9 @@ message InvertedIndexMeta {
// Statistical information about the tag's inverted index.
InvertedIndexStats stats = 8;
// The type of bitmap used for indexing.
BitmapType bitmap_type = 9;
}
// InvertedIndexStats provides statistical data on a tag's inverted index.
@@ -79,3 +82,9 @@ message InvertedIndexStats {
// The maximum value found within the tag's column, encoded as bytes.
bytes max_value = 4;
}
// BitmapType defines the type of bitmap used for indexing.
enum BitmapType {
BitVec = 0;
Roaring = 1;
}