zhengruifeng commented on code in PR #37728:
URL: https://github.com/apache/spark/pull/37728#discussion_r959038961
##########
core/src/main/scala/org/apache/spark/util/collection/Utils.scala:
##########
@@ -37,6 +37,23 @@ private[spark] object Utils {
ordering.leastOf(input.asJava, num).iterator.asScala
}
+ /**
+ * Returns an iterator over the merged contents of all given iterators,
+ * traversing every element of the input iterators.
+ * Equivalent entries will not be de-duplicated.
+ *
+ * Callers must ensure that the source iterators are already sorted by
+ * the same ordering `ord`, otherwise the result is likely to be incorrect.
+ */
+ def mergeOrdered[T](iterators: Iterable[TraversableOnce[T]])(
Review Comment:
yeah, let me rename it as `inputs`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]