【原帖地址】 http://highscalability.com/blog/2012/4/5/big-data-counting-how-to-count-a-billion-distinct-objects-us.html/ 其代码实现位于 https://github.com/clearspring/stream-lib