joinedOutFields = new Fields(iDFieldName, dRM1FieldName, dRM2FieldName);
}
}
void joinDRMsWriteToSolr(Path iDIndexPath, Path itemIndexPath, Path dRM1InputPath , Path dRM2InputPath, Path groupedCSVOutputPath) throws IOException {
MultiSourceTap dRM1Source = getTaps(dRM1InputPath, inFieldsDRM1);
MultiSourceTap dRM2Source = getTaps(dRM2InputPath, inFieldsDRM2);
Pipe lhs = new Pipe("DRM1");
Pipe rhs = new Pipe("DRM2");
Pipe groupByItemIDPipe = new CoGroup(lhs, common, rhs, common, grouped, new InnerJoin());
groupByItemIDPipe = new Each(groupByItemIDPipe, new VectorsToCSVFunction(joinedOutFields));