*/
void assignToRangeVariables() {
for (int i = 0; i < rangeVariables.length; i++) {
boolean hasIndex = false;
RangeVariableConditions conditions;
if (i < firstLeftJoinIndex
&& firstRightJoinIndex == rangeVariables.length) {
conditions = rangeVariables[i].joinConditions[0];
joinExpressions[i].addAll(whereExpressions[i]);
assignToRangeVariable(rangeVariables[i], conditions, i,
joinExpressions[i]);
assignToRangeVariable(conditions, joinExpressions[i]);
} else {
conditions = rangeVariables[i].joinConditions[0];
assignToRangeVariable(rangeVariables[i], conditions, i,
joinExpressions[i]);
conditions = rangeVariables[i].joinConditions[0];
if (conditions.hasIndexCondition()) {
hasIndex = true;
}
assignToRangeVariable(conditions, joinExpressions[i]);