Content Preview: rss
415 days ago
416 days ago
536 days ago
674 days ago
I came across the Google paper on MapReduce again the other day and decided to try a simple implementation using C# generics allowing you to specify specific types for the keys and values as opposed to being forced to use strings for all keys and values. The initial version doesn't include any automatic parallelism across multiple CPUs or clusters of machines. The core implementation below is only about 50-60 lines of code. I've also included sample map and reduce functions making use of this library and mirroring some of the sample applications mentioned in the Google paper. using System; using System.Collections.Generic; // Common shortcut where both keys and both values are strings using MapReduceAllStrings = MapReduce.MapReduce < string , string , string , string > ; namespace MapReduce { // Map delegate public delegate IEnumerable < KeyValuePair < K2,V2 >> Map < K,V,K2,V2 > ( ...
697 days ago



