Examples of estimateRowCount()


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

    thinAgg.setMeasures(measures);
    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

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

    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

Examples of org.pentaho.aggdes.ui.model.UIAggregate.estimateRowCount()

              newCell = (XulTreeCell) document.createElement("treecell");
              newCell.setLabel(newAgg.getName());
              newRow.addCell(newCell);
 
              newCell = (XulTreeCell) document.createElement("treecell");
              double rowCount = newAgg.estimateRowCount();
              if (rowCount == 0) {
                newCell.setLabel(ESTIMATE_UNKNOWN);
              } else {
                newCell.setLabel(format.format(rowCount));
              }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.UIAggregate.estimateRowCount()

              newCell = (XulTreeCell) document.createElement("treecell");
              newCell.setLabel(newAgg.getName());
              newRow.addCell(newCell);

              newCell = (XulTreeCell) document.createElement("treecell");
              double rowCount = newAgg.estimateRowCount();
              if (rowCount == 0) {
                newCell.setLabel(ESTIMATE_UNKNOWN);
              } else {
                newCell.setLabel(format.format(rowCount));
              }
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.UIAggregate.estimateRowCount()

                ? Messages.getString("agg_type_advisor")
                : Messages.getString("agg_type_custom")
            );
            aggTable.getRootChildren().getItem(idx).getRow().getCell(2).setLabel(agg.getName());

            double rowCount = agg.estimateRowCount();
            if (rowCount == 0) {
              aggTable.getRootChildren().getItem(idx).getRow().getCell(3).setLabel(ESTIMATE_UNKNOWN);
            } else {
              aggTable.getRootChildren().getItem(idx).getRow().getCell(3).setLabel(format.format(rowCount));
            }
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.