Ngone51 commented on a change in pull request #32232:
URL: https://github.com/apache/spark/pull/32232#discussion_r617342481



##########
File path: 
core/src/main/scala/org/apache/spark/util/collection/WritablePartitionedPairCollection.scala
##########
@@ -94,3 +83,20 @@ private[spark] trait WritablePartitionedIterator {
 
   def nextPartition(): Int
 }
+
+/**
+ * Default implementation of `WritablePartitionedIterator`.
+ */
+private[spark] class DefaultWritablePartitionedIterator[K, V](it: 
Iterator[((Int, K), V)])

Review comment:
       I think we can just turn the trait into the class if there's only one 
implementation now.




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to