feat(inverted_index): introduce SstIndexCreator#3107
Merged
zhongzc merged 6 commits intoGreptimeTeam:mainfrom Jan 9, 2024
Merged
feat(inverted_index): introduce SstIndexCreator#3107zhongzc merged 6 commits intoGreptimeTeam:mainfrom
zhongzc merged 6 commits intoGreptimeTeam:mainfrom
Conversation
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
7 tasks
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3107 +/- ##
==========================================
- Coverage 85.59% 85.04% -0.55%
==========================================
Files 815 818 +3
Lines 133334 133862 +528
==========================================
- Hits 114123 113847 -276
- Misses 19211 20015 +804 |
killme2008
reviewed
Jan 9, 2024
184c3b9 to
9196123
Compare
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
9196123 to
171e2f6
Compare
waynexia
reviewed
Jan 9, 2024
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Added
SstIndexCreator, a crucial structure used by the mito engine for creating indexes, with methods:update: Receives a batch and updates the index based on the batch.finish: Completes index creation and writes the index file.abort: Cancels index creation.Since external sorting is required during the index creation process, any interruption requires us to clean up the intermediate files generated by the external sorting, which is reflected in
do_cleanup.Additional structures that serve
SstIndexCreatorwere added:TempFileProvider: ImplementsExternalTempFileProvider, which is a dependency of external sorting.IntermediateLocation: Responsible for providing paths for intermediate files used in external sorting.Statistics: Responsible for recording statistical information during index creation and flushing it to metrics.IndexValuesCodec: Responsible for decoding primary keys from the batch to values.Checklist
Refer to a related PR or issue link (optional)
#2705