Package org.eobjects.analyzer.job.runner

Examples of org.eobjects.analyzer.job.runner.AnalysisResultFuture


    DateGapAnalyzer dga = ajb.addRowProcessingAnalyzer(DateGapAnalyzer.class).getConfigurableBean();
    dga.setFromColumn(orderDateColumn);
    dga.setToColumn(shippedDateColumn);
    dga.setGroupColumn(customerNumberAsStringColumn);

    AnalysisResultFuture resultFuture = runner.run(ajb.toAnalysisJob());

    if (resultFuture.isErrornous()) {
      throw resultFuture.getErrors().get(0);
    }

    List<AnalyzerResult> list = Collections.emptyList();
    RendererFactory rendererFactory = new RendererFactory(conf.getDescriptorProvider(), null);
    DetailsResultWindow window = new DetailsResultWindow("Example", list, new DCWindowContext(conf,
        UserPreferences.getInstance()), rendererFactory);
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    List<AnalyzerResult> results = resultFuture.getResults();
    for (AnalyzerResult analyzerResult : results) {
      JComponent renderedResult = new DateGapAnalyzerResultSwingRenderer()
          .render((DateGapAnalyzerResult) analyzerResult);
      window.addRenderedResult(renderedResult);
    }
View Full Code Here

TOP

Related Classes of org.eobjects.analyzer.job.runner.AnalysisResultFuture

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.