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);
}
Aggregations