Package plan_runner.expressions

Examples of plan_runner.expressions.ValueExpression


      final String fnName = function.getName();
      if (fnName.equalsIgnoreCase("EXTRACT_YEAR")) {
        if (numParams != 1)
          throw new RuntimeException("EXTRACT_YEAR function has exactly one parameter!");
        final ValueExpression expr = expressions.get(0);
        final ValueExpression ve = new IntegerYearFromDate(expr);
        _exprStack.push(ve);
      }
    }
  }
View Full Code Here


      expr.accept(this);
  }

  @Override
  public void visit(LongValue lv) {
    final ValueExpression ve = new ValueSpecification(_lc, lv.getValue());
    _exprStack.push(ve);
  }
View Full Code Here

  public void visit(Multiplication m) {
    if (!isRecognized(m)) {
      // normal call
      visitBinaryOperation(m);

      final ValueExpression right = _exprStack.pop();
      final ValueExpression left = _exprStack.pop();

      final ValueExpression add = new plan_runner.expressions.Multiplication(left, right);
      _exprStack.push(add);
    }
  }
View Full Code Here

      prnths.getExpression().accept(this);
  }

  @Override
  public void visit(StringValue sv) {
    final ValueExpression ve = new ValueSpecification(_sc, sv.getValue());
    _exprStack.push(ve);
  }
View Full Code Here

  public void visit(Subtraction s) {
    if (!isRecognized(s)) {
      // normal call
      visitBinaryOperation(s);

      final ValueExpression right = _exprStack.pop();
      final ValueExpression left = _exprStack.pop();

      final ValueExpression add = new plan_runner.expressions.Subtraction(left, right);
      _exprStack.push(add);
    }
  }
View Full Code Here

   */
  @Override
  public void visit(Addition adtn) {
    visitBinaryOperation(adtn);

    final ValueExpression right = _exprStack.pop();
    final ValueExpression left = _exprStack.pop();

    final ValueExpression add = new plan_runner.expressions.Addition(left, right);
    _exprStack.push(add);
  }
View Full Code Here

          _tan));

      // extract the position (index) of the required column
      final int position = _it.getColumnIndex(column, _affectedComponent);

      final ValueExpression ve = new ColumnReference(tc, position);
      _exprStack.push(ve);
    } else
      throw new NotFromMyBranchException();
  }
View Full Code Here

    throw new UnsupportedOperationException("Not supported yet.");
  }

  @Override
  public void visit(DateValue dv) {
    final ValueExpression ve = new ValueSpecification(_dateConv, dv.getValue());
    _exprStack.push(ve);
  }
View Full Code Here

  @Override
  public void visit(Division dvsn) {
    visitBinaryOperation(dvsn);

    final ValueExpression right = _exprStack.pop();
    final ValueExpression left = _exprStack.pop();

    final ValueExpression division = new plan_runner.expressions.Division(left, right);
    _exprStack.push(division);
  }
View Full Code Here

  // all of ValueSpecifications (constants) guarantee we have some expressions
  // in join conditions
  @Override
  public void visit(DoubleValue dv) {
    final ValueExpression ve = new ValueSpecification(_dblConv, dv.getValue());
    _exprStack.push(ve);
  }
View Full Code Here

TOP

Related Classes of plan_runner.expressions.ValueExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.