| 43 | template <class TInputArg, class TOutputArg> |
| 44 | class TMapReduceCmd: public IDistrCmd { |
| 45 | void ExecAsync(IUserContext* ctx, int hostId, TVector<char>* params, IDCResultNotify* dcNotify, int reqId) const override { |
| 46 | CHROMIUM_TRACE_FUNCTION(); |
| 47 | TInputArg inp; |
| 48 | SerializeFromMem(params, inp); |
| 49 | TOutputArg outp; |
| 50 | DoMapEx(ctx, hostId, &inp, &outp, dcNotify); |
| 51 | TVector<char> buf; |
| 52 | SerializeToMem(&buf, outp); |
| 53 | dcNotify->DistrCmdComplete(reqId, &buf); |
| 54 | } |
| 55 | void MergeAsync(TVector<TVector<char>>* src, IDCResultNotify* dcNotify, int reqId) const override { |
| 56 | CHROMIUM_TRACE_FUNCTION(); |
| 57 | TVector<TOutputArg> srcData; |
nothing calls this directly
no test coverage detected