*/
public void emitCsgCmp(long s1, long s2) {
P p1 = getPlan(s1);
P p2 = getPlan(s2);
long s = JoinableBitSet.union(s1, s2);
JoinType join12 = JoinType.INNER, join21 = JoinType.INNER;
evaluateOperators.clear();
oneSidedJoinOperators.clear();
boolean connected = false;
for (int e = 0; e < nedges; e +=2) {
boolean isEvaluate = isEvaluateOperator(s1, s2, e);
boolean isRelevant = isRelevant(s1, s2, e);
connected |= isEvaluate;
if (isEvaluate || isRelevant) {
// The one that produced this edge.
JoinOperator operator = operators.get(e/2);
JoinType joinType = operator.getJoinType();
if (joinType != JoinType.INNER) {
join12 = joinType;
join21 = commuteJoinType(joinType);
}
evaluateOperators.add(operator);