上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 82 下一页
摘要: 待整理: 测试代码: ''' Created on 2020年7月21日 @author: sea ''' from concurrent.futures.thread import ThreadPoolExecutor from concurrent.futures._base import as 阅读全文
posted @ 2020-07-21 18:43 lshan 阅读(973) 评论(1) 推荐(0) 编辑
摘要: 方式1: 1. 明确 Spark中Job 与 Streaming中 Job 的区别1.1 Spark Core一个 RDD DAG Graph 可以生成一个或多个 Job(Action操作)一个Job可以认为就是会最终输出一个结果RDD的一条由RDD组织而成的计算Job在spark里应用里是一个被调 阅读全文
posted @ 2020-07-21 16:57 lshan 阅读(3560) 评论(0) 推荐(0) 编辑
摘要: @Test public void testRegex() throws Exception { String str="das:! $%#*(*("; String regEx = "[`~!@#$%^&*()+=|{}':;'\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:” 阅读全文
posted @ 2020-07-21 12:06 lshan 阅读(1952) 评论(0) 推荐(0) 编辑
摘要: 原文: https://blog.csdn.net/MyronCham/article/details/85706089 参考上文即可! 案例一: reduceByKeyAndWindow // 热点搜索词滑动统计,每隔10秒钟,统计最近60秒钟的搜索词的搜索频次,并打印出排名最靠前的3个搜索词以及 阅读全文
posted @ 2020-07-20 18:16 lshan 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 参见:原文链接:https://blog.csdn.net/weixin_44530530/java/article/details/91901631 1.联表查询 2. 分组去重(案例) 3. 分组 4. topn 依赖: <dependency> <groupId>org.springframe 阅读全文
posted @ 2020-07-16 16:27 lshan 阅读(5045) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.cnblogs.com/vettel0329/p/10778931.html mongoDB单个实例不支持事务,副本集才支持事务 1.准备好docker 2.Spring boot 版本为2.1.1.RELEASE及以上 首先以主从模式安装mongodb 4.0.0以上 阅读全文
posted @ 2020-07-16 16:19 lshan 阅读(2563) 评论(0) 推荐(0) 编辑
摘要: 入门与使用参考这一片文档即可: https://www.cnblogs.com/takemybreathaway/articles/10172339.html 方法(sql使我们定义的sql = new SQLContext(sc)) df是一个DataFrame对象 实例说明 sql.read.t 阅读全文
posted @ 2020-07-15 16:27 lshan 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1.指定查询哪些字段 方式一: Query query = new Query(); query.fields().include("booking"); //包含该字段 query.fields().exclude("salary");//不包含该字段 Booking booking = mong 阅读全文
posted @ 2020-07-10 17:54 lshan 阅读(4024) 评论(0) 推荐(0) 编辑
摘要: 原文请参考:https://blog.csdn.net/youbitch1/java/article/details/88581251 aggregate: https://blog.csdn.net/bitcarmanlee/article/details/78088304 原理: 源码 : de 阅读全文
posted @ 2020-07-02 18:29 lshan 阅读(135) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-07-02 12:45 lshan 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 82 下一页