Package plan_runner.operators

Examples of plan_runner.operators.DistinctOperator


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


  protected void createSum(ValueExpression ve, boolean isDistinct) {
    _agg = new AggregateSumOperator(ve, _map);

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

  }

  @Override
  public void visit(AggregateOperator aggregation) {
    if (aggregation != null) {
      final DistinctOperator distinct = aggregation.getDistinct();
      if (distinct != null)
        visitNested(aggregation.getDistinct());
      if (aggregation.getGroupByProjection() != null) {
        _afterProjection.addAll(aggregation.getGroupByProjection().getExpressions());
        _veList.addAll(aggregation.getGroupByProjection().getExpressions());
View Full Code Here

    final EquiJoinComponent O_Ljoin = new EquiJoinComponent(relationOrders, relationLineitem,
        _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

    SelectOperator selectionLineitem = new SelectOperator(new ComparisonPredicate(
        ComparisonPredicate.LESS_OP, new ColumnReference(_dc, 11), new ColumnReference(_dc,
            12)));

    DistinctOperator distinctLineitem = new DistinctOperator(conf, new int[] { 0 });

    DataSourceComponent relationLineitem = new DataSourceComponent("LINEITEM", dataPath
        + "lineitem" + extension, _queryPlan).setHashIndexes(hashLineitem)
        .addOperator(selectionLineitem).addOperator(distinctLineitem);
View Full Code Here

TOP

Related Classes of plan_runner.operators.DistinctOperator

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.