Merge pull request #142 from liancheng/dagscheduler-pattern-matching

Using case class deep match to simplify code in DAGScheduler.processEvent

Since all `XxxEvent` pushed in `DAGScheduler.eventQueue` are case classes, deep 
pattern matching is more convenient to extract event object components.


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

Branch: refs/heads/master
Commit: 9f7b9bb1cd157e8278d43a3908d5f778b54aed55
Parents: 8106532 8b4c994
Author: Reynold Xin <[email protected]>
Authored: Tue Nov 5 10:42:19 2013 -0800
Committer: Reynold Xin <[email protected]>
Committed: Tue Nov 5 10:42:19 2013 -0800

----------------------------------------------------------------------
 .../org/apache/spark/scheduler/DAGScheduler.scala      | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


Reply via email to