wsry commented on a change in pull request #13924:
URL: https://github.com/apache/flink/pull/13924#discussion_r601175397
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/SortMergeResultPartition.java
##########
@@ -455,4 +458,28 @@ public int getNumberOfQueuedBuffers(int
targetSubpartition) {
PartitionedFile getResultFile() {
return resultFile;
}
+
+ @VisibleForTesting
+ SortMergeResultPartitionReader getPartitionReader() {
+ return partitionReader;
+ }
+
+ private int[] getRandomSubpartitionOrder(int numSubpartitions) {
Review comment:
I think it better to use a primitive int array to avoid the unbox
overhead when this order array is used, besides, the type that SortBuffer
accepts is also primitive int array.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]