org.pentaho.aggdes.algorithm.Progress Java Examples

The following examples show how to use org.pentaho.aggdes.algorithm.Progress. 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 vote down vote up
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: AlgorithmImplTest.java    From pentaho-aggdesigner with GNU General Public License v2.0 4 votes vote down vote up
public Result run(Schema schema, Map<Parameter, Object> parameterValues, Progress progress) {
  return null;
}
 
Example #3
Source File: AlgorithmImplTest.java    From pentaho-aggdesigner with GNU General Public License v2.0 4 votes vote down vote up
public void onStart(
    Map<Parameter, Object> parameterValues,
    Progress progress)
{
  super.onStart(parameterValues, progress);
}