Map接口 实现Map接口的类用来存储键(key)-值(value) 对。Map 接口的实现类有HashMap和TreeMap等。Map类中存储的键-值对通过键来标识,所以键值不能重复。HashMap: 线程不安全,效率高. 允许key或value为nullHashTable:线程安全,效率低. ....
分类:
其他好文 时间:
2014-07-11 18:56:07
阅读次数:
335
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1253题目大意:在所给的时间能顺利离开城堡。题目代码:#include #include #include #include using namespace std; int map[55][55...
分类:
其他好文 时间:
2014-07-11 18:19:06
阅读次数:
246
exists keydel key1 key2Redis 的vauleredis 提供五种数据类型:string,hash,list,set 及sorted set。string 是最基本的类型,而且string 类型是二进制安全的。意思是redis 的string 可以包含任何数据。比如jpg 图...
分类:
其他好文 时间:
2014-07-11 12:38:31
阅读次数:
239
部分系列题当然是不齐的。JZP系列 JZPKIL 数论,反演,积性函数,伯努利数,(常数优化) JZPFAR k-d树 JZPTAB 分块 hash sam【太可怕了 不会写】 JZPLCM 三维偏序,可持久化线段树维护 JZPEXT 数位统计(常数优化) JZPGYZ suffix array水....
分类:
其他好文 时间:
2014-07-11 09:50:41
阅读次数:
229
总结之前工作中遇到的一个问题。
背景:
运维用scribe从apache服务器推送过来的日志有重复记录,所以这边的ETL处理要去重,还有个需求是要按业务类型多目录输出,方便挂分区,后面的使用。
这两个需求单独处理都没有问题,但要在一个mapreduce里完成,需要一点技巧。
1、map输入数据,经过一系列处理,输出时:
if(ttype.equals("other"))...
分类:
其他好文 时间:
2014-07-11 00:20:13
阅读次数:
226
/**
* 功能:使用标准库:文本查询程序
* 时间:2014年7月10日09:10:15
* 作者:cutter_point
*/
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
using line_no=vector::size_type;
/**...
分类:
编程语言 时间:
2014-07-11 00:16:17
阅读次数:
305
最近研究了一个开源工具包org.codehaus.groovy,处理VO对象和XML文件的映射方便。简言之:将VO对象中的属性(包括Collection, Map),通过groovy模板文件,映射XML文件。...
分类:
其他好文 时间:
2014-07-10 22:48:20
阅读次数:
391
1 package cn.itcast.shopping; 2 3 import java.io.IOException; 4 import java.io.PrintWriter; 5 import java.util.Map; 6 7 import javax.servlet.Servle...
分类:
其他好文 时间:
2014-07-10 17:08:45
阅读次数:
243
Map Reduce – the Free Lunch is not over?
分类:
其他好文 时间:
2014-07-10 15:43:59
阅读次数:
147
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-07-10 15:00:57
阅读次数:
267