private boolean computeUseParallelExpressions() { boolean computedUseParallelExpressions; //use parallel expressions if I have a 1:1 selected, and the same class isn't //declared in the FROM computedUseParallelExpressions = ((SelectNode)this.parseTree.getQueryNode()).hasOneToOneSelected(this); //check if they've SELECTed a variable declared in the IN clause in the FROM, //or they've mapped more than one variable to the same type in the FROM computedUseParallelExpressions = computedUseParallelExpressions || ((SelectNode)this.parseTree.getQueryNode()).isVariableInINClauseSelected(this) || this.parseTree.getContext().hasMoreThanOneVariablePerType() || this.parseTree.getContext().hasMoreThanOneAliasInFrom(); return computedUseParallelExpressions; }
private boolean computeUseParallelExpressions() { boolean computedUseParallelExpressions; //use parallel expressions if I have a 1:1 selected, and the same class isn't //declared in the FROM computedUseParallelExpressions = ((SelectNode)this.parseTree.getQueryNode()).hasOneToOneSelected(this); //check if they've SELECTed a variable declared in the IN clause in the FROM, //or they've mapped more than one variable to the same type in the FROM computedUseParallelExpressions = computedUseParallelExpressions || ((SelectNode)this.parseTree.getQueryNode()).isVariableInINClauseSelected(this) || this.parseTree.getContext().hasMoreThanOneVariablePerType() || this.parseTree.getContext().hasMoreThanOneAliasInFrom(); return computedUseParallelExpressions; }
private boolean computeUseParallelExpressions() { boolean computedUseParallelExpressions; //use parallel expressions if I have a 1:1 selected, and the same class isn't //declared in the FROM computedUseParallelExpressions = ((SelectNode)this.parseTree.getQueryNode()).hasOneToOneSelected(this); //check if they've SELECTed a variable declared in the IN clause in the FROM, //or they've mapped more than one variable to the same type in the FROM computedUseParallelExpressions = computedUseParallelExpressions || ((SelectNode)this.parseTree.getQueryNode()).isVariableInINClauseSelected(this) || this.parseTree.getContext().hasMoreThanOneVariablePerType() || this.parseTree.getContext().hasMoreThanOneAliasInFrom(); return computedUseParallelExpressions; }