Search in sources :

Example 1 with ReconOperation

use of com.google.refine.operations.recon.ReconOperation in project OpenRefine by OpenRefine.

the class ReconcileCommand method createOperation.

@Override
protected AbstractOperation createOperation(Project project, HttpServletRequest request, JSONObject engineConfig) throws Exception {
    String columnName = request.getParameter("columnName");
    String configString = request.getParameter("config");
    JSONTokener t = new JSONTokener(configString);
    JSONObject config = (JSONObject) t.nextValue();
    return new ReconOperation(engineConfig, columnName, ReconConfig.reconstruct(config));
}
Also used : JSONTokener(org.json.JSONTokener) JSONObject(org.json.JSONObject) ReconOperation(com.google.refine.operations.recon.ReconOperation)

Aggregations

ReconOperation (com.google.refine.operations.recon.ReconOperation)1 JSONObject (org.json.JSONObject)1 JSONTokener (org.json.JSONTokener)1