Examples of TypeConversion


Examples of org.exolab.castor.builder.TypeConversion

        // set the config into the info factory (CASTOR-1346)
        infoFactory.setBoundProperties(config.boundPropertiesEnabled());

        this._memberFactory =
            new MemberFactory(config, infoFactory, getGroupNaming(), sourceGenerator);
        this._typeConversion = new TypeConversion(getConfig());
        this._enumerationFactory =
            new EnumerationFactory(getConfig(), getGroupNaming(), sourceGenerator);
    } //-- SourceFactory
View Full Code Here

Examples of org.exolab.castor.builder.TypeConversion

        if (config == null) {
            String error = "The argument 'config' must not be null.";
            throw new IllegalArgumentException(error);
        }
        _config = config;
        _typeConversion = new TypeConversion(_config);
        setGroupNaming(groupNaming);
    } //-- XMLBindingComponent
View Full Code Here

Examples of org.exolab.castor.builder.TypeConversion

        if (config == null) {
            String error = "The argument 'config' must not be null.";
            throw new IllegalArgumentException(error);
        }
        _config = config;
        _typeConversion = new TypeConversion(_config);
    } //-- XMLBindingComponent
View Full Code Here

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

Examples of plan_runner.conversion.TypeConversion

  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

Examples of plan_runner.conversion.TypeConversion

    // 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

Examples of plan_runner.conversion.TypeConversion

  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

Examples of plan_runner.conversion.TypeConversion

      // 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

Examples of plan_runner.conversion.TypeConversion

  @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

Examples of plan_runner.conversion.TypeConversion

  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
TOP
Copyright © 2018 www.massapi.com. 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.