期间遇到了无法转value的值为int型,我采用try catch解决
str2 2
str1 1
str3 3
str1 4
str4 7
str2 5
str3 9
用的\t隔开,得到结果 
str1 1,4 
str2 2,5
str3 3,9
str4 7
我这里map,reduce都是单独出来的类,用了自定义的key
package com.kan...
                            
                            
                                分类:
其他好文   时间:
2014-06-05 06:52:38   
                                阅读次数:
353
                             
                         
                    
                        
                            
                            
                                在项目中,登录时需要enter按钮提交页面所以需要监听键盘输出但是在火狐中不支持event.code所以换了中写法1:form中加入时间传入event2:监听判断是否为enter按钮。 
function onKeyPressBlockNumbers(e) { var key = ...
                            
                            
                                分类:
编程语言   时间:
2014-05-31 16:55:04   
                                阅读次数:
281
                             
                         
                    
                        
                            
                            
                                Plaster Processing Plant is key crushing 
equipment used to crush the large Plaster ore into small particles. We are a 
major plaster crusher manufactur...
                            
                            
                                分类:
其他好文   时间:
2014-05-31 15:52:02   
                                阅读次数:
237
                             
                         
                    
                        
                            
                            
                                引子: 
在大数据时代,总希望存在一个Key-value存储机制,像HashMap一样在内存中处理大量(千万数量级)的key-value对,以便提高数据查找、修改速度。 
所以,我们会想到,Memcached和Redis这两个NoSQL数据库(严格来讲二者都不可以算作数据库)。 1、Memcach...
                            
                            
                                分类:
其他好文   时间:
2014-05-31 15:35:29   
                                阅读次数:
293
                             
                         
                    
                        
                            
                            
                                attr(key,value) 为所有匹配的元素设置一个属性值。 相当于给key赋值如 
$("img").attr("src","http://shop59466775.taobao.com/"); 即意为给img元素赋予图片地址
                            
                            
                                分类:
Web程序   时间:
2014-05-31 14:28:43   
                                阅读次数:
258
                             
                         
                    
                        
                            
                            
                                1、提示符助手快捷键alt+/你可以自定义 window->keys->Content 
assist->Binding2、复制当前行alt+ctrl+下3、删除ctrl+D4、加注释块注释 shift+ctrl+\取消块注释 
shift+ctrl+/行ctrl+/
                            
                            
                                分类:
其他好文   时间:
2014-05-31 06:49:27   
                                阅读次数:
195
                             
                         
                    
                        
                            
                            
                                一、什么 RedisREmoteDIctionaryServer,简称 
Redis,是一个类似于Memcached的Key-Value存储系统。相比Memcached,它支持更丰富的数据结构,包括string(字符串)、list(链表)、set(集合)、zset(sorted 
set --有序集合)...
                            
                            
                                分类:
Web程序   时间:
2014-05-31 01:37:58   
                                阅读次数:
390
                             
                         
                    
                        
                            
                            
                                6.0: AxCryptoClient - New encryption key 
created6.0:Unable to InitializeSession.6.0: No built-in message corresponding to 
message id 0.解决方法:1、将登...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 23:51:26   
                                阅读次数:
500
                             
                         
                    
                        
                            
                            
                                Mybatis自动生成代码,需要用到mybatis 
Generator,详见http://mybatis.github.io/generator/configreference/generatedKey.htmlinsert语句如果要返回自动生成的key值,一般会在insert里加入useGener...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 21:44:12   
                                阅读次数:
593
                             
                         
                    
                        
                            
                            
                                Design and implement a data structure for Least 
Recently Used (LRU) cache. It should support the following 
operations:getandset.get(key)- Get the valu...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 15:09:06   
                                阅读次数:
223