Skip to content

Commit

Permalink
Fixed error in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Ganelin committed Jul 1, 2015
1 parent 36db0dc commit 1a8dba5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private[spark] abstract class ExternalSorter[K, V, C](
*
* This interface abstracts away aggregator dependence.
*/
override def writePartitionedFile(
def writePartitionedFile(
blockId: BlockId,
context: TaskContext,
outputFile: File): Array[Long]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private[spark] class ExternalSorterAgg[K, V, C](
partitioner: Option[Partitioner] = None,
ordering: Option[Ordering[K]] = None,
serializer: Option[Serializer] = None)
extends ExternalSorter[K, V, C]
extends ExternalSorter[K, V, C](partitioner, ordering, serializer)
with Spillable[WritablePartitionedPairCollection[K, C]]
with SortShuffleFileWriter[K, V] {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ private[spark] class ExternalSorterNoAgg[K, V, C](
*/
@VisibleForTesting
override def partitionedIterator: Iterator[(Int, Iterator[Product2[K, C]])] = {
val collection: WritablePartitionedPairCollection[K, C] = buffer
partitionedIterator(collection)
partitionedIterator(buffer)
}

/**
Expand All @@ -167,7 +166,6 @@ private[spark] class ExternalSorterNoAgg[K, V, C](
blockId: BlockId,
context: TaskContext,
outputFile: File): Array[Long] = {

writePartitionedFile(blockId, context, outputFile, buffer)
}
}

0 comments on commit 1a8dba5

Please sign in to comment.