Package org.pentaho.aggdes.algorithm

Examples of org.pentaho.aggdes.algorithm.Result


      } finally {
        pw.flush();
      }
      dialog.show();
     
      Result result = algorithmRunner.getResult();
      logger.debug("result=" + result);
 
      if (result == null || result.getAggregates() == null || result.getAggregates().size() == 0) {
        XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
        box.setTitle(Messages.getString("AlgorithmController.NoResultsTitle"));
        box.setMessage(Messages.getString("AlgorithmController.NoResultsMessage"));
        box.open();
        return;
      }
     
      List<UIAggregate> algorithmAggs = new ArrayList<UIAggregate>();
     
      for (Aggregate agg : result.getAggregates()) {
          UIAggregateImpl cagg = new UIAggregateImpl();
          cagg.setName(agg.getCandidateTableName());
          cagg.setAlgoAgg(true);
          cagg.setDescription(agg.getDescription());
          cagg.setEstimateRowCount(agg.estimateRowCount());
View Full Code Here


        ImmutableMap.<Parameter, Object>of(
            Algorithm.ParameterEnum.timeLimitSeconds, 1,
            Algorithm.ParameterEnum.aggregateLimit, 3,
            Algorithm.ParameterEnum.costLimit, f * 5d);
    final SchemaImpl schema = new SchemaImpl(lattice, statisticsProvider);
    final Result result = algorithm.run(schema, map, progress);
    final ImmutableList.Builder<Lattice.Tile> tiles = ImmutableList.builder();
    for (Aggregate aggregate : result.getAggregates()) {
      System.out.println(aggregate);
      tiles.add(toTile(aggregate));
    }
    return tiles.build();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.aggdes.algorithm.Result

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.