- 博客(6)
- 收藏
- 关注
转载 list,tuple,dict,set 思维导图整理
转载于:https://www.cnblogs.com/dream-nalizi/p/9509736.html
2018-08-21 10:03:00
225
转载 Python 闭包
闭包的编写套路: def outer(a,b): def inner(x): ....... return ... return inner outer称为外函数 inner称为内函数,内函数inner使用了外函数outer的参数a,b。 外函数outer最终的返回值是内函数inner的引用。 ...
2018-08-20 11:40:00
130
转载 一个自动修正数据时间和补全缺失数据的MapReduce程序
原始数据如下图: 程序: Mapper类: 1 public class DemoMapper extends Mapper<LongWritable,Text,IntWritable,Text>{ 2 IntWritable k = new IntWritable(); 3 Text v = new Text(); 4 ...
2017-08-28 00:52:00
312
转载 MapReduce原理
MappeReduce的一般程序流程由三个类组成——Mapper类,Reduce类,Driver类。 Mapper类: 敲黑板!重点:第十二行,IntWritable v = new IntWritable(); 重点二:当我们在第十行写完的时候,关于第十四十五十六行的内容可以由自动生成的方式生成。输入“map”,就会出现自动提示内容了;如果未设置自动提示,按“alt”+"/"...
2017-08-27 23:48:00
94
转载 Hadoop MapReduce常用输入输出格式
这里介绍MapReduce常用的几种输入输出格式。 三种常用的输入格式:TextInputFormat , SequenceFileInputFormat , KeyValueInputFormat . 1) TextInputFormat 为默认格式。不特地指明 MapReduce 的输入格式时,默认使用 TextInputFormat 的输入格式。它读取文件的行。 ...
2017-08-25 23:31:00
932
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人