Package plan_runner.operators

Examples of plan_runner.operators.AggregateCountOperator


   * veList used only in DISTINCT mode
   */
  protected void createCount(List<ValueExpression> veList, boolean isDistinct) {
    // COUNT(R.A) and COUNT(1) have the same semantics as COUNT(*), since we
    // do not have NULLs in R.A
    _agg = new AggregateCountOperator(_map);

    // DISTINCT and agg are stored on the same component.
    if (isDistinct) {
      final DistinctOperator distinct = new DistinctOperator(_map, veList);
      _agg.setDistinct(distinct);
View Full Code Here


    final List<Integer> hashIndexes = Arrays.asList(1);
    final EquiJoinComponent CUSTOMER_ORDERSjoin = new EquiJoinComponent(relationCustomer,
        relationOrders, _queryPlan).setHashIndexes(hashIndexes);

    // -------------------------------------------------------------------------------------
    final AggregateCountOperator agg = new AggregateCountOperator(conf)
        .setGroupByColumns(Arrays.asList(1));

    new OperatorComponent(CUSTOMER_ORDERSjoin, "COUNTAGG", _queryPlan).addOperator(agg)
        .setFullHashList(
            Arrays.asList("FURNITURE", "BUILDING", "MACHINERY", "HOUSEHOLD",
View Full Code Here

        + "orders" + extension, _queryPlan).addOperator(projectionOrders).setHashIndexes(
        hashOrders);

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

    final AggregateCountOperator postAgg = new AggregateCountOperator(conf)
        .setGroupByColumns(Arrays.asList(1));
    final List<Integer> hashIndexes = Arrays.asList(0);
    final EquiJoinComponent CUSTOMER_ORDERSjoin = new EquiJoinComponent(relationCustomer,
        relationOrders, _queryPlan).addOperator(postAgg).setHashIndexes(hashIndexes)
        .setBatchOutputMillis(1000);
View Full Code Here

        _queryPlan).setHashIndexes(Arrays.asList(1));

    // -------------------------------------------------------------------------------------
    // set up aggregation function on a separate StormComponent(Bolt)
    final DistinctOperator distinctOp = new DistinctOperator(conf, new int[] { 0 });
    final AggregateOperator aggOp = new AggregateCountOperator(conf).setGroupByColumns(
        Arrays.asList(1)).setDistinct(distinctOp);
    new OperatorComponent(O_Ljoin, "FINAL_RESULT", _queryPlan).addOperator(aggOp);

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

        .createThetaJoinOperator(Theta_JoinType, relationOrders, relationLineitem,
            _queryPlan).setHashIndexes(Arrays.asList(1)).setJoinPredicate(O_L_comp);

    //-------------------------------------------------------------------------------------
    // set up aggregation function on a separate StormComponent(Bolt)
    AggregateOperator aggOp = new AggregateCountOperator(conf).setGroupByColumns(Arrays
        .asList(1));
    OperatorComponent finalComponent = new OperatorComponent(O_Ljoin, "FINAL_RESULT",
        _queryPlan).addOperator(aggOp);

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

    final ColumnReference colCustomer = new ColumnReference(_ic, 0);
    final ColumnReference colOrders = new ColumnReference(_ic, 0);
    final ComparisonPredicate comp = new ComparisonPredicate(ComparisonPredicate.EQUAL_OP,
        colCustomer, colOrders);
   
    final AggregateCountOperator agg = new AggregateCountOperator(conf)
        .setGroupByColumns(Arrays.asList(1));
   
    Component lastJoiner = ThetaJoinComponentFactory
        .createThetaJoinOperator(Theta_JoinType, relationCustomer, relationOrders,
            _queryPlan).addOperator(agg).setJoinPredicate(comp).setContentSensitiveThetaJoinWrapper(_ic);
View Full Code Here

        + "orders" + extension, _queryPlan).addOperator(projectionOrders).setHashIndexes(
        hashOrders);

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

    final AggregateCountOperator agg = new AggregateCountOperator(conf)
        .setGroupByColumns(Arrays.asList(1));

    new EquiJoinComponent(relationCustomer, relationOrders, _queryPlan).addOperator(agg);

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

    // -------------------------------------------------------------------------------------
    final ProjectOperator projFirstOut = new ProjectOperator(new ColumnReference(_sc, 1),
        new ValueSpecification(_sc, "1"));
    final ProjectOperator projSecondOut = new ProjectOperator(new int[] { 1, 2 });
    final AggregationStorage secondJoinStorage = new AggregationStorage(
        new AggregateCountOperator(conf).setGroupByColumns(Arrays.asList(0)), _lc, conf,
        false);

    final List<Integer> hashIndexes = Arrays.asList(0);
    final EquiJoinComponent CUSTOMER_ORDERSjoin = new EquiJoinComponent(relationCustomer,
        relationOrders, _queryPlan).setFirstPreAggProj(projFirstOut)
View Full Code Here

TOP

Related Classes of plan_runner.operators.AggregateCountOperator

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.