private void createDerivedJoinResultsFromCC(String theCallingIndexReceiverId,
CompiledComparison cc, ExecutionContext context) throws FunctionDomainException,
TypeMismatchException, NameResolutionException, QueryInvocationTargetException {
if (isCompiledPath(cc._right) && matchingPathIds(theCallingIndexReceiverId, cc._left)) {
evaluateDerivedJoin(context, cc._right, new CompiledLiteral(cc._left.evaluate(context)),
cc.getOperator());
} else if (isCompiledPath(cc._left) && matchingPathIds(theCallingIndexReceiverId, cc._right)) {
evaluateDerivedJoin(context, cc._left, new CompiledLiteral(cc._right.evaluate(context)),
cc.getOperator());
}
}