posted @ 2015-10-10 14:29 钟悍 阅读(216) 评论(0) 推荐(0) 编辑
摘要:
public class Test { private static int calculate(int[] testcase) { int pLeft = 0; int pRight = testcase.length - 1; int maxLef... 阅读全文
摘要:
function setWinHeight() { setInterval(setIframeHeight, 2000);}function setIframeHeight(){ var ifm= document.getElementById("iframePage"); var... 阅读全文
posted @ 2015-05-25 13:10 钟悍 阅读(119) 评论(0) 推荐(0) 编辑
摘要:
merge into table_c c using table_m m on(c.username = m.username) when matched then update set c.userId = m.id; ------将table_m中的id字段设置到table_c中userId字... 阅读全文
posted @ 2015-05-22 15:43 钟悍 阅读(411) 评论(0) 推荐(0) 编辑
摘要:
public class TransactionSynchronizer { private final static Logger logger = LoggerFactory.getLogger(TransactionSynchronizer.class); public stati... 阅读全文
posted @ 2014-07-14 12:45 钟悍 阅读(5149) 评论(0) 推荐(0) 编辑
摘要:
在过去,每个应用都是单个程序,跑在单一CPU的单一服务器上。现在不一样了。在大数据和云计算的世界里,应用都是由许多独立的程序运行在一组不断变化的机器上。 协调这些独立程序的行为比起单一程序来困难的多。这样很容易导致开发人员陷入协调的逻辑而没有时间来实现正确的应用逻辑,或者反过来,花很少的时... 阅读全文
posted @ 2014-07-10 16:52 钟悍 阅读(317) 评论(1) 推荐(0) 编辑
摘要:
UPDATE TA a SET name = b.nameFROM (SELECT id, name FROM TB) bWHERE b.id = a.id; 阅读全文
posted @ 2014-07-08 14:14 钟悍 阅读(310) 评论(0) 推荐(0) 编辑
摘要:
在Spring中,实现ApplicationContextAware并覆盖setApplicationContext方法, 就可以获得ApplicationContext了。public class SpringApplicationContextHolder implements Applicat... 阅读全文
posted @ 2014-05-04 13:06 钟悍 阅读(9118) 评论(1) 推荐(1) 编辑
摘要:
目的:本文描述怎么安装和配置一个单结点的Hadoop,以便搭建能快速简单操作和使用Hadoop的MapReduce和Hadoop的分布式文件系统(HDFS);先决条件:支持的平台GNU/Linux 可用作开发和生产平台. Hadoop 在2000台GNU/Linux 的集群上做过演示.Windows... 阅读全文
posted @ 2014-04-29 18:57 钟悍 阅读(748) 评论(0) 推荐(0) 编辑