Search in sources :

Example 1 with ExtendDataOperation

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

the class ExtendDataCommand method createOperation.

@Override
protected AbstractOperation createOperation(Project project, HttpServletRequest request, EngineConfig engineConfig) throws Exception {
    String baseColumnName = request.getParameter("baseColumnName");
    int columnInsertIndex = Integer.parseInt(request.getParameter("columnInsertIndex"));
    String endpoint = request.getParameter("endpoint");
    String identifierSpace = request.getParameter("identifierSpace");
    String schemaSpace = request.getParameter("schemaSpace");
    String jsonString = request.getParameter("extension");
    DataExtensionConfig extension = DataExtensionConfig.reconstruct(jsonString);
    return new ExtendDataOperation(engineConfig, baseColumnName, endpoint, identifierSpace, schemaSpace, extension, columnInsertIndex);
}
Also used : DataExtensionConfig(com.google.refine.model.recon.ReconciledDataExtensionJob.DataExtensionConfig) ExtendDataOperation(com.google.refine.operations.recon.ExtendDataOperation)

Aggregations

DataExtensionConfig (com.google.refine.model.recon.ReconciledDataExtensionJob.DataExtensionConfig)1 ExtendDataOperation (com.google.refine.operations.recon.ExtendDataOperation)1