Package plan_runner.conversion

Examples of plan_runner.conversion.TypeConversion


  }

  @Override
  public void visit(Column column) {
    // extract type for the column
    final TypeConversion tc = _schema.getType(ParserUtil.getFullSchemaColumnName(column, _tan));

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

    final ValueExpression ve = new ColumnReference(tc, position);
View Full Code Here


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

    // extract the position (index) of the required column
    // column might be changed, due to the synonim effect
    final int position = _nt.getColumnIndex(_tupleSchema, column);

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

    final ValueExpression ve = new ColumnReference(tc, position,
        ParserUtil.getStringExpr(column));
    pushToExprStack(ve);
  }
View Full Code Here

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

      // extract the position (index) of the required column
      // column might be changed, due to the synonim effect
      final int position = _nt.getColumnIndex(_tupleSchema, column);

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

      final ValueExpression ve = new ColumnReference(tc, position,
          ParserUtil.getStringExpr(column));
      pushToExprStack(ve);
    } else
View Full Code Here

  @Override
  public SumCount runAggregateFunction(SumCount value, List<String> tuple) {
    Double sumDelta;
    Long countDelta;

    final TypeConversion veType = _ve.getType();
    if (veType instanceof SumCountConversion) {
      // when merging results from multiple Components which have SumCount
      // as the output
      final SumCount sc = (SumCount) _ve.eval(tuple);
      sumDelta = sc.getSum();
View Full Code Here

  private <T extends Expression> boolean isRecognized(T expr) {
    // 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
View Full Code Here

    // extract the position (index) of the required column
    // column might be changed, due to the synonim effect
    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

    final String tableCompName = ParserUtil.getComponentName(column);
    final List<String> ancestorNames = ParserUtil.getSourceNameList(_affectedComponent);

    if (ancestorNames.contains(tableCompName)) {
      // extract type for the column
      final TypeConversion tc = _schema.getType(ParserUtil.getFullSchemaColumnName(column,
          _tan));

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

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

TOP

Related Classes of plan_runner.conversion.TypeConversion

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.