Package com.google.refine.browsing

Examples of com.google.refine.browsing.Engine.initializeFromJSON()


        }

        Engine engine = new Engine(project);
        JSONObject o = getEngineConfig(request);
        if (o != null) {
            engine.initializeFromJSON(o);
        }
        return engine;
    }

    /**
 
View Full Code Here


            return this;
        }
       
        protected void populateRowsWithMatches(List<Integer> rowIndices) throws Exception {
            Engine engine = new Engine(_project);
            engine.initializeFromJSON(_engineConfig);
           
            Column column = _project.columnModel.getColumnByName(_baseColumnName);
            if (column == null) {
                throw new Exception("No column named " + _baseColumnName);
            }
View Full Code Here

            ? null : engineConfig.toString();
    }
   
    protected Engine createEngine(Project project) throws Exception {
        Engine engine = new Engine(project);
        engine.initializeFromJSON(getEngineConfig());
        return engine;
    }
   
    protected JSONObject getEngineConfig() {
        if (_engineConfig == null && _engineConfigString != null) {
View Full Code Here

   
   
    @Override
    public Process createProcess(Project project, Properties options) throws Exception {
        Engine engine = createEngine(project);
        engine.initializeFromJSON(_engineConfig);
       
        Evaluable eval = MetaParser.parse(_urlExpression);
       
        return new ColumnAdditionByFetchingURLsProcess(
            project,
View Full Code Here

            return this;
        }
       
        protected void populateEntries() throws Exception {
            Engine engine = new Engine(_project);
            engine.initializeFromJSON(_engineConfig);
           
            Column column = _project.columnModel.getColumnByName(_columnName);
            if (column == null) {
                throw new Exception("No column named " + _columnName);
            }
View Full Code Here

                engineConfig = ParsingUtilities.evaluateJsonStringToObject(request.getParameter("engine"));
            } catch (JSONException e) {
                // ignore
            }

            engine.initializeFromJSON(engineConfig);

            FilteredRows filteredRows = engine.getAllFilteredRows();
            filteredRows.accept(project, createRowVisitor(project, values));
           
            JSONArray stuff = new JSONArray();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.