feat(inverted_index): add row count to metas (#126)

Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
Zhenchi
2023-12-05 10:42:43 +08:00
committed by GitHub
parent 4377b4377c
commit b1d403088f
4 changed files with 377 additions and 206 deletions
+9 -5
View File
@@ -26,6 +26,15 @@ message InvertedIndexMetas {
// A map of tag names to their respective metadata corresponding to an individual
// inverted index within the inverted index blob.
map<string, InvertedIndexMeta> metas = 1;
// The total count of rows within the inverted index blob.
// This is used to determine the number of segments within the bitmap.
uint64 total_row_count = 2;
// The number of rows per group for bitmap indexing which determines how rows are
// batched for indexing. Each batch corresponds to a segment in the bitmap and allows
// for efficient retrieval during queries by reducing the search space.
uint64 segment_row_count = 3;
}
// InvertedIndexMeta contains the metadata for a specific tag's inverted index.
@@ -56,11 +65,6 @@ message InvertedIndexMeta {
// Statistical information about the tag's inverted index.
InvertedIndexStats stats = 8;
// The number of rows per group for bitmap indexing which determines how rows are
// batched for indexing. Each batch corresponds to a segment in the bitmap and allows
// for efficient retrieval during queries by reducing the search space.
uint64 segment_row_count = 9;
}
// InvertedIndexStats provides statistical data on a tag's inverted index.