-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(p3): introduce external merge sort & remove several executors * new line at eof * refactor OrderBy * introduce external merge sort executor * introduce tuple comparator * add comments for 2-way merge sort requirement * make sort plan node format as external merge sort * fix lint * sync private for test sort * sync private * update submission files * update p4 submission files * initializer -> constructor * update tests and shared ptr for IndexInfo and TableInfo * update TxnMgrDbg calls * fix format errors * sync private * sync private * sync private * redistribute points * rename leaderboard test file --------- Co-authored-by: Yash Kothari <[email protected]>
- Loading branch information
1 parent
1f1a8a0
commit 2dd141e
Showing
34 changed files
with
459 additions
and
211 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// BusTub | ||
// | ||
// external_merge_sort_executor.cpp | ||
// | ||
// Identification: src/execution/external_merge_sort_executor.cpp | ||
// | ||
// Copyright (c) 2015-2024, Carnegie Mellon University Database Group | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "execution/executors/external_merge_sort_executor.h" | ||
#include <iostream> | ||
#include <optional> | ||
#include <vector> | ||
#include "common/config.h" | ||
#include "execution/plans/sort_plan.h" | ||
|
||
namespace bustub { | ||
|
||
template <size_t K> | ||
ExternalMergeSortExecutor<K>::ExternalMergeSortExecutor(ExecutorContext *exec_ctx, const SortPlanNode *plan, | ||
std::unique_ptr<AbstractExecutor> &&child_executor) | ||
: AbstractExecutor(exec_ctx), cmp_(plan->GetOrderBy()) {} | ||
|
||
template <size_t K> | ||
void ExternalMergeSortExecutor<K>::Init() { | ||
throw NotImplementedException("ExternalMergeSortExecutor is not implemented"); | ||
} | ||
|
||
template <size_t K> | ||
auto ExternalMergeSortExecutor<K>::Next(Tuple *tuple, RID *rid) -> bool { | ||
return false; | ||
} | ||
|
||
template class ExternalMergeSortExecutor<2>; | ||
|
||
} // namespace bustub |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.