this.nodeComparator = newNodeComparator;
}
public void mergeJoin(SortedSet<Attribute> headings, SortedSet<Attribute> commonHeadings,
EvaluatedRelation relation1, EvaluatedRelation relation2, SortedSet<Tuple> result) {
Attribute attr = chooseACommonHeading(headings, relation1, relation2);
commonHeadings.remove(attr);
final PartitionedRelation partRelation1 = new PartitionedRelationImpl(nodeComparator, attr, relation1);
final PartitionedRelation partRelation2 = new PartitionedRelationImpl(nodeComparator, attr, relation2);
sortMergeJoin.mergeJoin(headings, commonHeadings, partRelation1, partRelation2, result);
}