![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
scala
柯南爱上指针
·
展开
-
scala 主构造函数和辅助构造函数
package scala.day01import scala.beans.BeanProperty/** * 注意:@BeanProperty会生成四个方法 * name:String * name_ = (new Value:String):Unit * getName():String * setName(new Value:String):Unit * ...原创 2019-01-30 16:05:25 · 1303 阅读 · 0 评论 -
scala高阶函数练习题
/** 练习题目1 * 编写函数values(fun:(Int)=>Int,low:Int,hight:Int) * * 该函数输出一个集合,对应给定区间内给定的给定函数的输入和输出,R比如values(x=>x*x,-5,5) * 应该产出一个对偶集合(-5,25),(-4,16),(-3,9)...(5,25) * */ def values(fu...原创 2019-01-30 16:24:13 · 1242 阅读 · 1 评论 -
Cannot create encoder for Option of Product type, because Product type is represented as a row
点我查看原文使用sparksql会遇到下面错误:Cannot create encoder for Option of Product type, because Product type is represented as a row, and the entire row can not be null in Spark SQL like normal databases. You ...转载 2019-02-28 11:32:14 · 726 阅读 · 0 评论