Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(inverted_index.create): add external sorter (#2950)
* feat(inverted_index.create): add read/write for external intermediate files Signed-off-by: Zhenchi <[email protected]> * chore: MAGIC_CODEC_V1 -> CODEC_V1_MAGIC Signed-off-by: Zhenchi <[email protected]> * chore: polish comments Signed-off-by: Zhenchi <[email protected]> * chore: fix typos intermedia -> intermediate Signed-off-by: Zhenchi <[email protected]> * fix: typos Signed-off-by: Zhenchi <[email protected]> * feat(inverted_index.create): add external sorter Signed-off-by: Zhenchi <[email protected]> * chore: fix typos intermedia -> intermediate Signed-off-by: Zhenchi <[email protected]> * chore: polish comments Signed-off-by: Zhenchi <[email protected]> * chore: polish comments Signed-off-by: Zhenchi <[email protected]> * refactor: drop the stream as early as possible to avoid recursive calls to poll Signed-off-by: Zhenchi <[email protected]> * refactor: project merge sorted stream Signed-off-by: Zhenchi <[email protected]> * feat: add total_row_count to SortOutput Signed-off-by: Zhenchi <[email protected]> * feat: remove change of format Signed-off-by: Zhenchi <[email protected]> * refactor: rename segment null bitmap Signed-off-by: Zhenchi <[email protected]> * refactor: test type alias Signed-off-by: Zhenchi <[email protected]> * feat: allow `memory_usage_threshold` to be None to turn off dumping Signed-off-by: Zhenchi <[email protected]> * feat: change segment_row_count type to NonZeroUsize Signed-off-by: Zhenchi <[email protected]> * refactor: accept BytesRef instead Signed-off-by: Zhenchi <[email protected]> * feat: add `push_n` to adapt mito2 Signed-off-by: Zhenchi <[email protected]> * chore: add k-way merge TODO Signed-off-by: Zhenchi <[email protected]> * refactor: more sorter cases Signed-off-by: Zhenchi <[email protected]> * refactor: make the merge tree balance Signed-off-by: Zhenchi <[email protected]> * Update src/index/src/inverted_index/create/sort/external_sort.rs Co-authored-by: Yingwen <[email protected]> * chore: address comments Signed-off-by: Zhenchi <[email protected]> * chore: stable feature Signed-off-by: Zhenchi <[email protected]> --------- Signed-off-by: Zhenchi <[email protected]> Co-authored-by: Yingwen <[email protected]>
- Loading branch information