2014年12月27日

怎样解释MapReduce

摘要: We want to count all the books in the library. You count up shelf #1, I count up shelf #2. That's map. The more people we get, the faster it goes.我们要数... 阅读全文

posted @ 2014-12-27 13:54 勇敢前行 阅读(100) 评论(0) 推荐(0)

2014年12月13日

单例模式

摘要: 单例模式是设计模式中最简单的形式之一。Singleton模式主要作用是保证在Java应用程序中,一个类Class只有一个实例存在。 要实现这一点,可以从客户端对其进行实例化开始。因此需要用一种只允许生成对象类的唯一实例的机制,“阻止”所有想要生成对象的访问。使用工厂方法来限制实例化过程。这个方... 阅读全文

posted @ 2014-12-13 23:51 勇敢前行 阅读(92) 评论(0) 推荐(0)

导航