- 博客(12)
- 资源 (3)
- 收藏
- 关注
原创 使用Intellij构建spark源码阅读环境
步骤1:下载spark-源码,这里以spark1.3为例。http://spark.apache.org/downloads.html2.下载编译后的spark源码,这里下载根据Hadoop2.3版本编译的。3.使用Intellij新建scala工程(使用scala编写spark application,也可以新建java工程)5.配置项目scala
2016-06-20 15:52:01
2394
原创 scala Manifest、ClassTag、TypeTag的学习
http://stackoverflow.com/questions/12218641/scala-what-is-a-typetag-and-how-do-i-use-ithttp://blog.csdn.net/u014729236/article/details/48656947
2016-05-27 20:43:10
630
原创 Java虚拟机解释执行和JIT的关系
Java程序最初是仅仅通过解释器解释执行的,即对字节码逐条解释执行,这种方式的执行速度相对会比较慢,尤其当某个方法或代码块运行的特别频繁时,这种方式的执行效率就显得很低。于是后来在虚拟机中引入了JIT编译器(即时编译器),当虚拟机发现某个方法或代码块运行特别频繁时,就会把这些代码认定为“Hot Spot Code”(热点代码),为了提高热点代码的执行效率,在运行时,虚拟机将会把这些代码编译成与本地
2015-05-15 21:18:22
2245
原创 编程之美1.2
#include#includeusing namespace std;int cakeCount;//用于存储一共有多少个cakeint uperBound;int *cakeArray;//保存初始cake排列的情况int *cakeSwapArray;//保存对cake进行翻转得到的临时Array情况int *swapNumArray;//保存每次翻转的第几个cake(按照数
2014-10-16 15:40:43
404
原创 Guava-base接口|Ascii|CharMatcher
public interface Supplier { /** * Retrieves an instance of the appropriate type. The returned object may or * may not be a new instance, depending on the implementation. *返回的可能是 * @
2014-10-14 11:23:50
553
原创 Guava-annotations
@Retention(RetentionPolicy.CLASS)@Target({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})@Documented@GwtCompatib
2014-10-14 10:43:30
872
原创 第一章:开篇
问题:给一个磁盘文件进行排序先写一下会用到的归并排序:#include#includevoid merge(int *a, int *b, int lenA, int lenB){ int i = 0, j = 0; int k = 0; /*生成临时保存的数组*/ int *newArray = malloc( (lenA + lenB) * sizeof(int) );
2014-10-13 09:20:41
374
Elasticsearch服务器开发(第2版)
2017-12-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人