Example #1
0
        public static void saveMapResult(SendMappedData request)
        {
            foreach (var keyValue in request.listOfMapperResults)
            {
                var path = Path.Combine(MapReduceUtils.GetWorkingDirectory(), getIdOfKey(keyValue.Key) + MAPER_RESULT_EXTENSION);
                SaveQueue.append(path, keyValue.Value);
            }
            //System.IO.File.AppendAllText (path, request.value + Environment.NewLine);

            //var path = Path.Combine (MapReduceUtils.GetWorkingDirectory (), getIdOfKey (request.key) + MAPER_RESULT_EXTENSION);
            //SaveQueue.append (path, request.value);
        }
Example #2
0
 public object Put(SendMappedData request)
 {
     log.DebugFormat("Recived new data from mappers {0}", request.listOfMapperResults.ToJson());
     ReducerRunner.saveMapResult(request);
     return(new SendMappedDataResponse());
 }