org.pentaho.aggdes.algorithm.util.ArgumentUtils Java Examples

The following examples show how to use org.pentaho.aggdes.algorithm.util.ArgumentUtils. 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: AlgorithmRunner.java    From pentaho-aggdesigner with GNU General Public License v2.0 6 votes vote down vote up
public void start(final Map<String, String> algorithmRawParams, final Callback callback) {
  // gen the params
  final Map<Parameter, Object> algorithmParams = ArgumentUtils.validateParameters(algorithm, algorithmRawParams);

  // Run the algorithm.
  final TextProgress progress = new TextProgress(pw);

  new Thread() {
    @Override
    public void run() {
      logger.debug("Calling algorithm run method with parameters: "+algorithmParams);
      result = algorithm.run(connectionModel.getSchema(), algorithmParams, progress);
      callback.algorithmDone();
    }
  }.start();

}