File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
core/src/main/scala/org/apache/spark
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ abstract class NarrowDependency[T](_rdd: RDD[T]) extends Dependency[T] {
65
65
* @param keyOrdering key ordering for RDD's shuffles
66
66
* @param aggregator map/reduce-side aggregator for RDD's shuffle
67
67
* @param mapSideCombine whether to perform partial aggregation (also known as map-side combine)
68
- * @param shuffleWriterProcessor the processor to control the write behavior in ShuffleMapTask.
68
+ * @param shuffleWriterProcessor the processor to control the write behavior in ShuffleMapTask
69
69
*/
70
70
@ DeveloperApi
71
71
class ShuffleDependency [K : ClassTag , V : ClassTag , C : ClassTag ](
Original file line number Diff line number Diff line change @@ -22,10 +22,9 @@ import org.apache.spark.internal.Logging
22
22
import org .apache .spark .rdd .RDD
23
23
import org .apache .spark .scheduler .MapStatus
24
24
25
-
26
25
/**
27
26
* The interface for customizing shuffle write process. The driver create a ShuffleWriteProcessor
28
- * and put it into [[ShuffleDependency ]], and executors use it for write processing .
27
+ * and put it into [[ShuffleDependency ]], and executors use it in each ShuffleMapTask .
29
28
*/
30
29
private [spark] trait ShuffleWriteProcessor extends Serializable with Logging {
31
30
@@ -75,7 +74,7 @@ private[spark] trait ShuffleWriteProcessor extends Serializable with Logging {
75
74
76
75
77
76
/**
78
- * Default shuffle write processor use the shuffle write metrics reporter in context.
77
+ * Default shuffle write processor which use the shuffle write metrics reporter in context.
79
78
*/
80
79
private [spark] class DefaultShuffleWriteProcessor extends ShuffleWriteProcessor {
81
80
override def createMetricsReporter (
Original file line number Diff line number Diff line change @@ -350,8 +350,8 @@ object ShuffleExchangeExec {
350
350
}
351
351
352
352
/**
353
- * Create a customized [[ShuffleWriteProcessor ]] for SQL which wrapping the default metrics
354
- * reporter with [[SQLShuffleWriteMetricsReporter ]].
353
+ * Create a customized [[ShuffleWriteProcessor ]] for SQL which wrap the default metrics reporter
354
+ * with [[SQLShuffleWriteMetricsReporter ]] as new reporter for [[ ShuffleWriteProcessor ]].
355
355
*/
356
356
def createShuffleWriteProcessor (metrics : Map [String , SQLMetric ]): ShuffleWriteProcessor = {
357
357
(reporter : ShuffleWriteMetricsReporter ) => {
You can’t perform that action at this time.
0 commit comments