Exemple #1
0
 protected internal virtual MergeManager <K, V> CreateMergeManager(ShuffleConsumerPlugin.Context
                                                                   context)
 {
     return(new MergeManagerImpl <K, V>(reduceId, jobConf, context.GetLocalFS(), context
                                        .GetLocalDirAllocator(), reporter, context.GetCodec(), context.GetCombinerClass(
                                            ), context.GetCombineCollector(), context.GetSpilledRecordsCounter(), context.GetReduceCombineInputCounter
                                            (), context.GetMergedMapOutputsCounter(), this, context.GetMergePhase(), context
                                        .GetMapOutputFile()));
 }
 public override void Init(ShuffleConsumerPlugin.Context <K, V> context)
 {
     // just verify that Context has kept its public interface
     context.GetReduceId();
     context.GetJobConf();
     context.GetLocalFS();
     context.GetUmbilical();
     context.GetLocalDirAllocator();
     context.GetReporter();
     context.GetCodec();
     context.GetCombinerClass();
     context.GetCombineCollector();
     context.GetSpilledRecordsCounter();
     context.GetReduceCombineInputCounter();
     context.GetShuffledMapsCounter();
     context.GetReduceShuffleBytes();
     context.GetFailedShuffleCounter();
     context.GetMergedMapOutputsCounter();
     context.GetStatus();
     context.GetCopyPhase();
     context.GetMergePhase();
     context.GetReduceTask();
     context.GetMapOutputFile();
 }