Repository: spark
Updated Branches:
  refs/heads/master 8df4dad49 -> 8861cdf11


Clean unused code in SortShuffleWriter

Just clean unused code which have been moved into ExternalSorter.

Author: Raymond Liu <[email protected]>

Closes #1882 from colorant/sortShuffleWriter and squashes the following commits:

e6337be [Raymond Liu] Clean unused code in SortShuffleWriter


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8861cdf1
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8861cdf1
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8861cdf1

Branch: refs/heads/master
Commit: 8861cdf11288f7597809e9e0e1cad66fb85dd946
Parents: 8df4dad
Author: Raymond Liu <[email protected]>
Authored: Sat Aug 23 19:47:14 2014 -0700
Committer: Josh Rosen <[email protected]>
Committed: Sat Aug 23 19:47:14 2014 -0700

----------------------------------------------------------------------
 .../org/apache/spark/shuffle/sort/SortShuffleWriter.scala     | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8861cdf1/core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala
----------------------------------------------------------------------
diff --git 
a/core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala 
b/core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala
index 22f656f..b8c9ad4 100644
--- a/core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala
+++ b/core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala
@@ -17,12 +17,11 @@
 
 package org.apache.spark.shuffle.sort
 
-import java.io.{BufferedOutputStream, File, FileOutputStream, DataOutputStream}
+import java.io.File
 
 import org.apache.spark.{MapOutputTracker, SparkEnv, Logging, TaskContext}
 import org.apache.spark.executor.ShuffleWriteMetrics
 import org.apache.spark.scheduler.MapStatus
-import org.apache.spark.serializer.Serializer
 import org.apache.spark.shuffle.{ShuffleWriter, BaseShuffleHandle}
 import org.apache.spark.storage.ShuffleBlockId
 import org.apache.spark.util.collection.ExternalSorter
@@ -37,10 +36,6 @@ private[spark] class SortShuffleWriter[K, V, C](
   private val numPartitions = dep.partitioner.numPartitions
 
   private val blockManager = SparkEnv.get.blockManager
-  private val ser = Serializer.getSerializer(dep.serializer.orNull)
-
-  private val conf = SparkEnv.get.conf
-  private val fileBufferSize = conf.getInt("spark.shuffle.file.buffer.kb", 32) 
* 1024
 
   private var sorter: ExternalSorter[K, V, _] = null
   private var outputFile: File = null


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

Reply via email to