You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/04/21 09:10:53 UTC

[GitHub] [spark] Ngone51 commented on a change in pull request #32232: [SPARK-35135][CORE] Extract a class implementation of `WritablePartitionedIterator` to remove duplicate code

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org