/** * Collect the variables used by the SELECT EXPRESSIONS for this projection * node. * <p> * Note: This DOES NOT report the variables which are projected OUT of the * query. It reports the variables on which those projected variables * depend. * * @param vars * The variables are inserted into this set. * * @return The caller's set. */ public Set<IVariable<?>> getSelectExprVars(final Set<IVariable<?>> vars) { for(AssignmentNode n : this) { final Iterator<IVariable<?>> itr = BOpUtility.getSpannedVariables(n .getValueExpression()); while (itr.hasNext()) { vars.add(itr.next()); } } return vars; }
while(projectionNodes.hasMoreElements()) { final AssignmentNode n = (AssignmentNode) projectionNodes.nextElement(); IValueExpression expr = n.getValueExpression(); final IValueExpressionNode exprNode = n.getValueExpressionNode(); if (expr == null && exprNode instanceof FunctionNode) {
/** * Collect the variables used by the SELECT EXPRESSIONS for this projection * node. * <p> * Note: This DOES NOT report the variables which are projected OUT of the * query. It reports the variables on which those projected variables * depend. * * @param vars * The variables are inserted into this set. * * @return The caller's set. */ public Set<IVariable<?>> getSelectExprVars(final Set<IVariable<?>> vars) { for(AssignmentNode n : this) { final Iterator<IVariable<?>> itr = BOpUtility.getSpannedVariables(n .getValueExpression()); while (itr.hasNext()) { vars.add(itr.next()); } } return vars; }
while(projectionNodes.hasMoreElements()) { final AssignmentNode n = (AssignmentNode) projectionNodes.nextElement(); IValueExpression expr = n.getValueExpression(); final IValueExpressionNode exprNode = n.getValueExpressionNode(); if (expr == null && exprNode instanceof FunctionNode) {
/** * Return the {@link IValueExpression}s for this {@link GroupByNode}. */ public IValueExpression[] getValueExpressions() { final IValueExpression<?>[] exprs = new IValueExpression[size()]; int i = 0; for (IValueExpressionNode node : this) { exprs[i++] = new Bind(((AssignmentNode) node).getVar(), ((AssignmentNode) node).getValueExpression()); } return exprs; }
/** * Return the {@link IValueExpression}s for this {@link ProjectionNode}. */ public IValueExpression[] getValueExpressions() { final IValueExpression<?>[] exprs = new IValueExpression[size()]; int i = 0; for (AssignmentNode n : this) { exprs[i++] = new Bind(n.getVar(), n.getValueExpression()); } return exprs; }
/** * Return the {@link IValueExpression}s for this {@link GroupByNode}. */ public IValueExpression[] getValueExpressions() { final IValueExpression<?>[] exprs = new IValueExpression[size()]; int i = 0; for (IValueExpressionNode node : this) { exprs[i++] = new Bind(((AssignmentNode) node).getVar(), ((AssignmentNode) node).getValueExpression()); } return exprs; }
/** * Return the {@link IValueExpression}s for this {@link ProjectionNode}. */ public IValueExpression[] getValueExpressions() { final IValueExpression<?>[] exprs = new IValueExpression[size()]; int i = 0; for (AssignmentNode n : this) { exprs[i++] = new Bind(n.getVar(), n.getValueExpression()); } return exprs; }
if (bind.getValueExpression() instanceof IConstant<?>) { if (bind.getVar().equals(bind.getValueExpression())) { if (bind.getValueExpression() instanceof IVariable<?>) { if (definitelyBound.contains(bind.getValueExpression())) { (BOp) bind.getValueExpression(), new LinkedHashSet<IVariable<?>>());
if (bind.getValueExpression() instanceof IConstant<?>) { if (bind.getVar().equals(bind.getValueExpression())) { if (bind.getValueExpression() instanceof IVariable<?>) { if (definitelyBound.contains(bind.getValueExpression())) { (BOp) bind.getValueExpression(), new LinkedHashSet<IVariable<?>>());
final boolean projection) { final IValueExpression ve = assignmentNode.getValueExpression(); assignmentNode.getValueExpression(), projection);
final boolean projection) { final IValueExpression ve = assignmentNode.getValueExpression(); assignmentNode.getValueExpression(), projection);
final AST2BOpContext ctx) { final IValueExpression ve = assignmentNode.getValueExpression(); final ConditionalBind b = new ConditionalBind( freshVar, assignmentNode.getValueExpression(), false);
final AST2BOpContext ctx) { final IValueExpression ve = assignmentNode.getValueExpression(); final ConditionalBind b = new ConditionalBind( freshVar, assignmentNode.getValueExpression(), false);
final AssignmentNode ass, final AST2BOpContext ctx) { final IValueExpression<?> vexp = ass.getValueExpression();
final AssignmentNode ass, final AST2BOpContext ctx) { final IValueExpression<?> vexp = ass.getValueExpression();
final IValueExpression<?> ve = an.getValueExpression(); bs.set(boundVar, (IConstant)an.getValueExpression()); staticBindingInfo.addProduced(bs); new InlineTasks( boundVar, (IConstant) an.getValueExpression(), usageInfo.getVarUsages(boundVar)));
final IValueExpression<?> ve = an.getValueExpression(); bs.set(boundVar, (IConstant)an.getValueExpression()); staticBindingInfo.addProduced(bs); new InlineTasks( boundVar, (IConstant) an.getValueExpression(), usageInfo.getVarUsages(boundVar)));