Actions
The following table lists some of the common actions supported by Spark. Refer to the RDD API doc (Scala, Java, Python)
and pair RDD functions doc (Scala, Java)
for details.
Ac...
分类:
其他好文 时间:
2014-09-21 03:39:19
阅读次数:
279
Transformations
The following table lists some of the common transformations supported by Spark. Refer to the RDD API doc (Scala, Java, Python)
and pair RDD functions doc (Scala, Java)
for deta...
分类:
其他好文 时间:
2014-09-21 03:05:49
阅读次数:
305
Problem Description
You play a game with your friend. He draws several lines on the paper with n×m square grids (see the left figure). After that, he writes down the number of lines passing through...
分类:
其他好文 时间:
2014-09-21 02:54:39
阅读次数:
381
数组 / 映射 / 元组一、数组1、定长数组声明数组的两种形式:声明指定长度的数组 val 数组名= new Array[类型](数组长度) 提供数组初始值的数组,无需new关键字 Scala声明数组时,需要带有Array类名,且使用 () 来指明长度或提供初始值序列。在JVM中,Sca...
分类:
其他好文 时间:
2014-09-20 01:06:06
阅读次数:
253
最近用spray做点东西,刚开始入门,把doc大概过了一遍,最灵活的要数它的routing-DSL了。当然由于scala强大的特性,很多不同于Java的东西,源码看起来还是相当费劲的,尤其是对于我这种scala使用没多久的新手。 ...
分类:
其他好文 时间:
2014-09-19 15:47:36
阅读次数:
410
配置完成后保存退出并执行source命令使配置文件生效。Step3:运行IDEA并安装和配置IDEA的Scala开发插件:官方文档指出:我们进入IDEA的bin目录:此时,运行“idea.sh”出现如下界面:此时需要选择“Configure”进入IDEA的配置页面:选择“Plugins”,进入插件安装界面:此时点..
分类:
其他好文 时间:
2014-09-19 14:01:46
阅读次数:
285
配置完成后保存退出并执行source命令使配置文件生效。Step 3:运行IDEA并安装和配置IDEA的Scala开发插件:官方文档指出:我们进入IDEA的bin目录:此时,运行“idea.sh”出现如下界面:此时需要选择“Configure”进入IDEA的配置页面:选择“Plugins”,进入插件...
分类:
其他好文 时间:
2014-09-19 13:25:35
阅读次数:
220
After you had helped George and Alex to move in the dorm, they went to help their friend Fedor play a new computer game «Call of Soldiers 3».
The game has (m?+?1) players and
n types of soldiers in...
分类:
其他好文 时间:
2014-09-19 12:10:25
阅读次数:
233
一、基础1、变量val 标志符: 声明常量; 如,val answer = 1var 标志符:声明变量; 类型推断:变量的类型由scala根据初始化变量的表达式推断而来; 鼓励使用val; 注:声明变量时不做初始化会报错。明确类型: scala的变量或函数的类型总是写在变量或函数的后面。1 ...
分类:
其他好文 时间:
2014-09-19 01:10:14
阅读次数:
378
WebRequest request = WebRequest.Create("http://1.bjapp.sinaapp.com/play.php?a=" + PageUrl); WebResponse response = request.GetR...