Package org.pentaho.aggdes.model

Examples of org.pentaho.aggdes.model.Aggregate


    measures.addAll(connectionModel.getSchema().getMeasures());
    thinAgg.setMeasures(measures);
    setModified(false);

    // resync algorithm calculations
    Aggregate algoAggregate = algorithm.createAggregate(connectionModel.getSchema(), thinAgg.getAttributes());
    thinAgg.setEstimateRowCount(algoAggregate.estimateRowCount());
    thinAgg.setEstimateSpace(algoAggregate.estimateSpace());

  }
View Full Code Here


      double totalbenefit = 0;
      double x = 0;
      int count = 0;
      for (Algorithm.CostBenefit cb : costBenefit) {
        Aggregate agg = algoAggregates.get(count);
        double estimateSpace = agg.estimateSpace();
        double hx = estimateSpace / 2;
        totalLoadTime += cb.getLoadTime();
        totalbenefit += cb.getSavedQueryRowCount();
        series1.add(x + hx, totalbenefit);
       
View Full Code Here

    }
  }

  public void showAgg(int idx) {
    aggLevelTable.clearSelection();
    Aggregate agg = getAggList().getAgg(idx);
    if (agg == null) {
      logger.info(String.format("List and Table out of sync, %s does not exist", idx));
    } else {
      getAggList().setSelectedIndex(idx);
    }
View Full Code Here

    XulTree aggTable = (XulTree) document.getElementById("definedAggTable");
    XulTreeRow row = aggTable.getRootChildren().getItem(idx).getRow();
    agg.setEnabled((Boolean) row.getCell(0).getValue());

    // get row count estimate
    Aggregate algoAggregate = algorithm.createAggregate(connectionModel.getSchema(), agg.getAttributes());
    agg.setEstimateRowCount(algoAggregate.estimateRowCount());
    agg.setEstimateSpace(algoAggregate.estimateSpace());
    getAggList().aggChanged(agg);
    System.out.println("Saving agg, enabled? " + row.getCell(0).getValue());
   
  }
View Full Code Here

TOP

Related Classes of org.pentaho.aggdes.model.Aggregate

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.