Exemple #1
0
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();
}
Exemple #2
0
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;
}
Exemple #3
0
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;
}