Package plan_runner.expressions

Examples of plan_runner.expressions.ValueExpression


  @Override
  public void visit(Multiplication m) {
    visitBinaryOperation(m);

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

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


  @Override
  public void visit(NotEqualsTo net) {
    visitBinaryOperation(net);

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

    final ComparisonPredicate cp = new ComparisonPredicate(ComparisonPredicate.NONEQUAL_OP,
        left, right);
    _predStack.push(cp);
  }
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

  @Override
  public void visit(Subtraction s) {
    visitBinaryOperation(s);

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

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

    // expr is changed in place, so that it does not contain synonims
    final int position = _nt.indexOf(_inputTupleSchema, expr);
    if (position != ParserUtil.NOT_FOUND) {
      // we found an expression already in the tuple schema
      final TypeConversion tc = _nt.getType(_inputTupleSchema, expr);
      final ValueExpression ve = new ColumnReference(tc, position,
          ParserUtil.getStringExpr(expr));
      pushToExprStack(ve);
      return true;
    } else
      return false;
View Full Code Here

  public void visit(Addition adtn) {
    if (!isRecognized(adtn)) {
      // normal call
      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

    final int position = _nt.getColumnIndex(_inputTupleSchema, column);

    // extract type for the column
    final TypeConversion tc = _nt.getType(_inputTupleSchema, column);

    final ValueExpression ve = new ColumnReference(tc, position,
        ParserUtil.getStringExpr(column));
    pushToExprStack(ve);
  }
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

  public void visit(Division dvsn) {
    if (!isRecognized(dvsn)) {
      // normal call
      visitBinaryOperation(dvsn);

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

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

    }
  }

  @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.