Package com.google.refine.process

Examples of com.google.refine.process.Process


       
        try {
            Project project = getProject(request);
           
            AbstractOperation op = new DenormalizeOperation();
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here


            String jsonString = request.getParameter("protograph");
            JSONObject json = ParsingUtilities.evaluateJsonStringToObject(jsonString);
            Protograph protograph = Protograph.reconstruct(json);
           
            AbstractOperation op = new SaveProtographOperation(protograph);
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

        ProjectManager.singleton.setBusy(true);
        try {
            Project project = getProject(request);
           
            AbstractOperation op = new ImportQADataOperation();
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        } finally {
View Full Code Here

       
        try {
            Project project = getProject(request);
           
            AbstractOperation op = createOperation(project, request, getEngineConfig(request));
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

            String keyColumnName = request.getParameter("keyColumnName");
            String separator = request.getParameter("separator");
            String mode = request.getParameter("mode");
           
            AbstractOperation op = new MultiValuedCellSplitOperation(columnName, keyColumnName, separator, mode);
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

            String columnName = request.getParameter("columnName");
            String keyColumnName = request.getParameter("keyColumnName");
            String separator = request.getParameter("separator");
           
            AbstractOperation op = new MultiValuedCellJoinOperation(columnName, keyColumnName, separator);
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

            int rowCount = Integer.parseInt(request.getParameter("rowCount"));
           
            AbstractOperation op = new TransposeRowsIntoColumnsOperation(
                    columnName, rowCount);
           
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

            String noteColumnName = request.getParameter("noteColumnName");
           
            AbstractOperation op = new KeyValueColumnizeOperation(
                keyColumnName, valueColumnName, noteColumnName);
           
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

           
            String oldColumnName = request.getParameter("oldColumnName");
            String newColumnName = request.getParameter("newColumnName");
           
            AbstractOperation op = new ColumnRenameOperation(oldColumnName, newColumnName);
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

           
            String columnName = request.getParameter("columnName");
            int index = Integer.parseInt(request.getParameter("index"));
           
            AbstractOperation op = new ColumnMoveOperation(columnName, index);
            Process process = op.createProcess(project, new Properties());
           
            performProcessAndRespond(request, response, project, process);
        } catch (Exception e) {
            respondException(response, e);
        }
View Full Code Here

TOP

Related Classes of com.google.refine.process.Process

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.