Skip to content

Commit

Permalink
Move diskBytesSpilled getter next to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed May 25, 2015
1 parent 19bccd6 commit 8d0678c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ private[spark] class ExternalSorter[K, V, C](

// Total spilling statistics
private var _diskBytesSpilled = 0L
def diskBytesSpilled: Long = _diskBytesSpilled

// Write metrics for current spill
private var curWriteMetrics: ShuffleWriteMetrics = _
Expand Down Expand Up @@ -818,8 +819,6 @@ private[spark] class ExternalSorter[K, V, C](
}
}

def diskBytesSpilled: Long = _diskBytesSpilled

/**
* Given a stream of ((partition, key), combiner) pairs *assumed to be sorted by partition ID*,
* group together the pairs for each partition into a sub-iterator.
Expand Down

0 comments on commit 8d0678c

Please sign in to comment.