org.pentaho.aggdes.algorithm.Result Java Examples
The following examples show how to use
org.pentaho.aggdes.algorithm.Result.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AlgorithmStub.java From pentaho-aggdesigner with GNU General Public License v2.0 | 6 votes |
public Result run(Schema schema, Map<Parameter, Object> parameterValues, Progress progress) { canceled = false; int i = 0; while (!canceled && i < 3) { try { System.out.println("algorithm running"); Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } finally { i++; } } if (canceled) { System.out.println("algorithm canceled"); return null; } else { System.out.println("algorithm ended normally"); return new ResultStub(); } }
Example #2
Source File: AlgorithmRunner.java From pentaho-aggdesigner with GNU General Public License v2.0 | 4 votes |
public Result getResult() { return result; }
Example #3
Source File: AlgorithmImplTest.java From pentaho-aggdesigner with GNU General Public License v2.0 | 4 votes |
public Result run(Schema schema, Map<Parameter, Object> parameterValues, Progress progress) { return null; }
Example #4
Source File: ResultHandlerStub.java From pentaho-aggdesigner with GNU General Public License v2.0 | 2 votes |
public void handle(Map<Parameter, Object> parameterValues, Schema schema, Result result) { }
Example #5
Source File: AggDesignerMainTest.java From pentaho-aggdesigner with GNU General Public License v2.0 | 2 votes |
public void handle(Map<Parameter, Object> parameterValues, Schema schema, Result result) { System.out.println("ResultHandlerStub handle called"); }