void SubAdapterStep::setOutputRowGroup(const rowgroup::RowGroup& rg) { fRowGroupOut = fRowGroupDeliver = rg; if (fRowGroupFe.getColumnCount() == (uint32_t) -1) fIndexMap = makeMapping(fRowGroupIn, fRowGroupOut); else fIndexMap = makeMapping(fRowGroupFe, fRowGroupOut); checkDupOutputColumns(); }
TPKGS::Path TPKGS::getSourcePath(const Path &installPath) const { assert(installPath.is_absolute()); size_t lengthOfBestMatch = 0; Path result; for(auto a = _installPathMap.begin(); a != _installPathMap.end(); a++) { if(makeMapping(a->first, a->second, installPath, lengthOfBestMatch, result)) { break; } } return result; }
TPKGS::Path TPKGS::getInstallPath(const Path &relSourcePath) const { assert(!relSourcePath.is_absolute()); size_t lengthOfBestMatch = 0; Path result; // revers iteration to get shortest source dirs first for(auto a = _installPathMap.rbegin(); a != _installPathMap.rend(); a++) { if(makeMapping(a->second, a->first, relSourcePath, lengthOfBestMatch, result)) { break; } } return result; }