Package org.pentaho.aggdes.ui.model.impl

Examples of org.pentaho.aggdes.ui.model.impl.UIAggregateImpl


      }
     
      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());
          cagg.setEstimateSpace(agg.estimateSpace());
         
          List<Attribute> list = new ArrayList<Attribute>(agg.getAttributes());
          cagg.setAttributes(list);
 
          List<Measure> measureList = new ArrayList<Measure>(agg.getMeasures());
          cagg.setMeasures(measureList);
 
          algorithmAggs.add(cagg);
      }
     
      // reverse the collection, the results from the algorithm seem to
View Full Code Here


    changeInAggregates();
  }

  public void addAgg() {
    try {
      UIAggregate newAgg = new UIAggregateImpl();
      aggNamingService.nameAggregate(newAgg, getAggList(), connectionModel.getSchema());
     
      newAgg.setOutput(outputService.generateDefaultOutput(newAgg));
     
      getAggList().addAgg(newAgg);
      getAggList().setSelectedIndex(getAggList().getSize() - 1);
    } catch (OutputValidationException e) {
      System.err.println("Failed to create output, skipping UIAggregate");
View Full Code Here

  public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
    List<UIAggregate> list = new ArrayList<UIAggregate>();
    while (reader.hasMoreChildren()) {
      reader.moveDown();
      if ("aggregation".equals(reader.getNodeName())) {
              UIAggregateImpl agg = (UIAggregateImpl)context.convertAnother(null, UIAggregateImpl.class);
              list.add(agg);
      }
      reader.moveUp();
    }
    aggList.clearAggs();
View Full Code Here

          applyUiExtensions(AggController.this.aggList.getAgg(e.getIndex()));
        }
      }
    });

    aggModel.setThinAgg(new UIAggregateImpl());
    initialized = true;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.aggdes.ui.model.impl.UIAggregateImpl

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.