Spark上手指南 https://dounm.github.io/2016/09/28/spark-tutorial/
spark源码官网 https://github.com/apache/spark/tree/master/mllib
spark/mllib/src/main/scala/org/apache/spark/mllib/classification/LogisticRegression.scala
这种形式的类型称为复合类型(compound type)或者也叫交集类型(intersection type)。class A extends B with C with D with E
Traits 特质
是一些字段和行为的集合,可以扩展或混入(mixin)你的类中。 https://twitter.github.io/scala_school/zh_cn/basics.html
在Scala中检查先决条件、添加字段和自指向 http://developer.51cto.com/art/200907/138197.htm
require方法带一个布尔型参数。如果传入的值为真,require将正常返回。反之,require将通过抛出IllegalArgumentException来阻止对象被构造。
Scala语法学习参考 http://www.yiibai.com/scala/scala_lists.html