Package org.pentaho.aggdes.model

Examples of org.pentaho.aggdes.model.Aggregate.estimateSpace()


    setModified(false);

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

  }

  public ConnectionModel getConnectionModel() {
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

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