Skip to content

Commit

Permalink
chore: rename fields to reduce confused
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Nov 23, 2023
1 parent fa206a9 commit 3610e9e
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions proto/greptime/v1/index/inverted_index.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,37 +35,32 @@ message InvertedIndexMeta {

// The base byte offset for this tag's inverted index data within the blob.
// Other offsets in this message are relative to this base offset.
uint64 offset = 2;
uint64 base_offset = 2;

// The total size in bytes of this tag's inverted index data, including bitmaps,
// FST data.
uint64 size = 3;
uint64 inverted_index_size = 3;

// The byte offset of the Finite State Transducer (FST) relative to the base
// 'offset'.
uint32 fst_offset = 4;
// The byte offset of the Finite State Transducer (FST) data relative to the `base_offset`.
uint32 relative_fst_offset = 4;

// The size in bytes of the FST data.
uint32 fst_size = 5;

// The byte offset relative to the base 'offset' where the null bitmap for this tag
// The byte offset relative to the `base_offset` where the null bitmap for this tag
// starts.
uint32 null_bitmap_offset = 6;
uint32 relative_null_bitmap_offset = 6;

// The size in bytes of the null bitmap.
uint32 null_bitmap_size = 7;

// Statistical information about the tag's inverted index.
InvertedIndexStats stats = 8;

// Defines the number of rows per group for bitmap indexing. It determines how rows
// are batched for indexing, with each batch corresponding to a segment in the bitmap.
// The groups are usually of uniform size, with the exception of the final group which
// may contain fewer rows if the total row count is not a multiple of 'row_count_in_group'.
// Segmenting allows indexed values in the tag column to be quickly located within
// their respective groups during a query, reducing the search space and improving
// retrieval efficiency.
uint64 row_count_in_group = 9;
// 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.
Expand Down

0 comments on commit 3610e9e

Please sign in to comment.