2017年11月8日

mapreduce解析执行sql流程

摘要: 样例准备 条件过滤 sql:select * from student where sex='male'; mr:该操作属于比较简单的操作,直接在map阶段对数据进行过滤操作即可。 分组统计 sql:select class_name,count(*) from student group by c 阅读全文

posted @ 2017-11-08 16:15 李雷 阅读(717) 评论(0) 推荐(0)

Container With Most Water 容器最大水容量

摘要: 描述 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two en 阅读全文

posted @ 2017-11-08 14:10 李雷 阅读(492) 评论(0) 推荐(0)

socket阻塞IO流程图

摘要: 单线程 多线程 阅读全文

posted @ 2017-11-08 13:42 李雷 阅读(290) 评论(1) 推荐(0)

java非阻塞IO(NIO)流程

摘要: 单线程 多线程(Netty/Mina) 阅读全文

posted @ 2017-11-08 13:04 李雷 阅读(588) 评论(0) 推荐(0)

依赖注入优缺点分析

摘要: 背景 项目开发要求: 1、增加程序重用 2、模块功能单一 3、方便测试 4、需求变更,减少程序开发 实际应用场景 以两种日志记录和数据库使用两种场景来分析 1、日志记录:有时需要调试分析,需要记录日志信息,这时可以采用输出到控制台、文件、数据库、远程服务器等;假设最初采用输出到控制台,直接在程序中实 阅读全文

posted @ 2017-11-08 11:00 李雷 阅读(7455) 评论(0) 推荐(1)

全排列Permutations

摘要: 描述 Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3 阅读全文

posted @ 2017-11-08 10:05 李雷 阅读(210) 评论(0) 推荐(0)

导航