MCPcopy Create free account
hub / github.com/catboost/catboost / MRCommandComplete

Method MRCommandComplete

library/cpp/par/par_exec.h:629–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627 TVector<int> ResultMap;
628
629 void MRCommandComplete(bool isCanceled, TVector<TVector<char>>* res) override {
630 if (isCanceled)
631 Parent->Cancel();
632 else {
633 // copy results
634 Y_ASSERT(ResultMap.ysize() == res->ysize());
635 int count = ResultMap.ysize();
636 for (int i = 0; i < count; ++i)
637 Parent->ResultData[ResultMap[i]].swap((*res)[i]);
638 AtomicAdd(Parent->ActiveOpCount, -1);
639
640 Parent->StartNextBlock();
641 }
642 }
643 TGUID GetMasterQueryId() override {
644 return Parent->MasterGuid;
645 }

Callers

nothing calls this directly

Calls 5

AtomicAddFunction · 0.50
CancelMethod · 0.45
ysizeMethod · 0.45
swapMethod · 0.45
StartNextBlockMethod · 0.45

Tested by

no test coverage detected