-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add some comments #3754
Merged
Merged
add some comments #3754
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
17b38e6
add some comments
cangfengzhs 4895f18
Merge remote-tracking branch 'vesoft/master' into comment2
cangfengzhs 13e0ebe
address some comments
cangfengzhs 2c527ab
Merge branch 'master' into comment2
cangfengzhs 0abb977
Merge branch 'master' into comment2
cangfengzhs 0cf2fe1
Merge branch 'master' into comment2
Sophie-Xie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,25 @@ using PropHandler = std::function<nebula::cpp2::ErrorCode( | |
template <typename T> | ||
class StoragePlan; | ||
|
||
// RelNode is shortcut for relational algebra node, each RelNode has an execute | ||
// method, which will be invoked in dag when all its dependencies have finished | ||
/** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comments in below classes should also adjust the format? |
||
* @brief RelNode is the abbreviation for relational algebra node, each RelNode has an execute | ||
* method, which will be invoked in DAG when all its dependencies have finished | ||
* | ||
* @tparam T is input data type of plan | ||
*/ | ||
template <typename T> | ||
class RelNode { | ||
friend class StoragePlan<T>; | ||
|
||
public: | ||
/** | ||
* @brief start execution with `input` and `partId` | ||
cangfengzhs marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* | ||
* `execute` function is a warpper of `doExecute`. It add some hook before and after `doExecute`. | ||
* And derived class only need override `doExecute`. | ||
* | ||
* | ||
*/ | ||
virtual nebula::cpp2::ErrorCode execute(PartitionID partId, const T& input) { | ||
duration_.resume(); | ||
auto ret = doExecute(partId, input); | ||
|
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don,t recommend this style of comment. It,s redundant.