- 博客(4)
- 资源 (11)
- 收藏
- 关注
原创 Spark 算子调优
使用mapPartitions 或者 mapPartitionWithIndex 替换map 操作在映射的过程中需要频繁创建额外对象的时候(数据库,网络TCP等IO连接,文件流 等)mapPartitions 按照分区创建额外的对象map 按照元素创建额外对象mapPartitionsWithIndex 与mapPartitions基本相同,只是处理参数是一个二元组,元组的第一个元素是当...
2019-08-16 14:52:41 240
转载 # Scala 函数
Scala 函数传名调用(call-by-name)Scala的解释器在解析函数参数(function arguments)时有两种方式:传值调用(call-by-value):先计算参数表达式的值,再应用到函数内部;传名调用(call-by-name):将未计算的参数表达式直接应用到函数内部在进入函数内部前,传值调用方式就已经将参数表达式的值计算完毕,而传名调用是在函数内部进行参数表...
2019-08-15 16:27:33 173
原创 # Synchronized 原理和优化
synchronized 原理和优化synchronized 是java 中解决并发问题最常用的方法,也是最简单的一种方法。Synchronized 的主要作用是确保线程互斥访问同步代码保证共享变量的修改能及时可见有效解决重排问题Synchronized 原理反编译下面代码看看Synchronized 是如何实现代码同步的public class Demo{ public vo...
2019-08-15 11:13:23 182
Garbage-First LSM 论文
2019-06-13
spring 5 , Spring Boot 2.0,Spring cloud
2018-12-05
Linux Shell脚本攻略(第2版)
2018-11-13
kafka-definitive-guide pdf
2018-11-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人