-
Notifications
You must be signed in to change notification settings - Fork 135
feat: Optimizing Sorting Performance via Radix Sort Algorithm #589
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
Conversation
| if (type.isPrimitive()) { | ||
| String sqlTypeName = convertToSqlTypeName(type); | ||
| SqlTypeName typeName = SqlTypeName.valueOf(sqlTypeName); | ||
| SqlTypeName typeName = Types.getType(type.getTypeClass()) == Types.BINARY_STRING ? |
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.
Check Style failed, operatorWrap: '?' should be on a new line.
| } | ||
| } | ||
| } | ||
| return true; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| @Override | ||
| public Iterable<Row> finish() { | ||
| List<Row> sortedRows = new ArrayList<>(allRows); | ||
| sortedRows.sort(topNRowComparator); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| import org.apache.geaflow.common.binary.BinaryString; | ||
| import org.apache.geaflow.dsl.common.data.Row; | ||
|
|
||
| public class MultiFieldRadixSort { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
Please add design reports and performance tests. |
|
@yaozhongq Design reports and performance tests are placed in Ralated Issue: #591 |
cb9bab3 to
9e8d9fe
Compare
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.
LGTM
What changes were proposed in this pull request?
This pull request introduces an radix sorting algorithm implementation tailored for integers and short strings.
Ralated Issue: #591
How was this PR tested?