Package plan_runner.expressions

Examples of plan_runner.expressions.IntegerYearFromDate


      createCount(expressions, function.isDistinct());
    else 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


      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

    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

    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

    // -------------------------------------------------------------------------------------

    final List<Integer> hashOrders = Arrays.asList(0);

    final ProjectOperator projectionOrders = new ProjectOperator(new ColumnReference(_sc, 0),
        new IntegerYearFromDate(new ColumnReference(_dateConv, 4)));

    final DataSourceComponent relationOrders = new DataSourceComponent("ORDERS", dataPath
        + "orders" + extension, _queryPlan).setHashIndexes(hashOrders).addOperator(
        projectionOrders);
View Full Code Here

        new ColumnReference(_dateConv, 10), true,
        new ValueSpecification(_dateConv, _date1), true, new ValueSpecification(_dateConv,
            _date2)));

    // first field in projection
    final ValueExpression extractYear = new IntegerYearFromDate(new ColumnReference<Date>(
        _dateConv, 10));
    // second field in projection
    // 1 - discount
    final ValueExpression<Double> substract = new Subtraction(new ValueSpecification(
        _doubleConv, 1.0), new ColumnReference(_doubleConv, 6));
View Full Code Here

        new ColumnReference(_dateConv, 10), true,
        new ValueSpecification(_dateConv, _date1), true, new ValueSpecification(_dateConv,
            _date2)));

    // first field in projection
    final ValueExpression extractYear = new IntegerYearFromDate(new ColumnReference<Date>(
        _dateConv, 10));
    // second field in projection
    // 1 - discount
    final ValueExpression<Double> substract = new Subtraction(new ValueSpecification(
        _doubleConv, 1.0), new ColumnReference(_doubleConv, 6));
View Full Code Here

    //-------------------------------------------------------------------------------------

    List<Integer> hashOrders = Arrays.asList(0);

    ProjectOperator projectionOrders = new ProjectOperator(new ColumnReference(_sc, 0),
        new IntegerYearFromDate(new ColumnReference(_dateConv, 4)));

    DataSourceComponent relationOrders = new DataSourceComponent("ORDERS", dataPath + "orders"
        + extension, _queryPlan).setHashIndexes(hashOrders).addOperator(projectionOrders);

    //-------------------------------------------------------------------------------------
View Full Code Here

    //first field in projection
    ValueExpression OrdersOrderKey = new ColumnReference(_sc, 0);
    //second field in projection
    ValueExpression OrdersCustKey = new ColumnReference(_sc, 1);
    //third field in projection
    ValueExpression OrdersExtractYear = new IntegerYearFromDate(new ColumnReference<Date>(
        _dateConv, 4));
    ProjectOperator projectionOrders = new ProjectOperator(OrdersOrderKey, OrdersCustKey,
        OrdersExtractYear);

    DataSourceComponent relationOrders = new DataSourceComponent("ORDERS", dataPath + "orders"
View Full Code Here

    // first field in projection
    final ValueExpression OrdersOrderKey = new ColumnReference(_sc, 0);
    // second field in projection
    final ValueExpression OrdersCustKey = new ColumnReference(_sc, 1);
    // third field in projection
    final ValueExpression OrdersExtractYear = new IntegerYearFromDate(
        new ColumnReference<Date>(_dateConv, 4));
    final ProjectOperator projectionOrders = new ProjectOperator(OrdersOrderKey, OrdersCustKey,
        OrdersExtractYear);

    final DataSourceComponent relationOrders = new DataSourceComponent("ORDERS", dataPath
View Full Code Here

TOP

Related Classes of plan_runner.expressions.IntegerYearFromDate

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.