| 98 | |
| 99 | template <class TInput, class TOutput> |
| 100 | inline void Map(TJobDescription* job, TMapReduceCmd<TInput, TOutput>* cmd, TVector<TInput>* src) { |
| 101 | job->SetCurrentOperation(cmd); |
| 102 | TVector<char> buf; |
| 103 | for (int i = 0; i < src->ysize(); ++i) |
| 104 | job->AddMap((*src)[i]); |
| 105 | } |
| 106 | |
| 107 | class TJobExecutor { |
| 108 | class TCallback: public IMRCommandCompleteNotify { |
no test coverage detected