摘要: 通过InputFormat,Hadoop可以:l检查MapReduce输入数据的正确性;l将输入数据切分为逻辑块InputSplit,这些块会分配给Mapper;l提供一个RecordReader实现,Mapper用该实现从InputSplit中读取输入的对。通过FileInputFormat。下面... 阅读全文
posted @ 2014-05-19 16:33 baoendemao 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1 如何将字串 String 转换成整数 int?A. 有两个方法:1). int i = Integer.parseInt([String]); 或i = Integer.parseInt([String],[int radix]);2). int i = Integer.valueOf(my_s... 阅读全文
posted @ 2014-05-19 10:18 baoendemao 阅读(164) 评论(0) 推荐(0) 编辑