Package com.google.refine.history

Examples of com.google.refine.history.HistoryEntry


                    _columnName,
                    _reconConfig,
                    null
                );
               
                HistoryEntry historyEntry = new HistoryEntry(
                    _historyEntryID,
                    _project,
                    _description,
                    ReconOperation.this,
                    reconChange
View Full Code Here


        List<Change> changes = new ArrayList<Change>(project.rows.size());
       
        FilteredRows filteredRows = engine.getAllFilteredRows();
        filteredRows.accept(project, createRowVisitor(project, changes));
       
        return new HistoryEntry(
            historyEntryID,
            project,
            (_flagged ? "Flag" : "Unflag") + " " + changes.size() + " rows",
            this,
            new MassChange(changes, false)
View Full Code Here

            }
           
            r = r2 - 1; // r will be incremented by the for loop anyway
        }
       
        return new HistoryEntry(
            historyEntryID,
            project,
            getBriefDescription(null),
            this,
            new MassRowChange(newRows)
View Full Code Here

            }

            engine.getAllRecords().accept(project, visitor);
        }

        return new HistoryEntry(
                historyEntryID,
                project,
                "Reorder rows",
                this,
                new RowReorderChange(rowIndices)
View Full Code Here

            }
           
            newRows.add(newRow != null ? newRow : oldRow);
        }
       
        return new HistoryEntry(
            historyEntryID,
            project,
            getBriefDescription(project),
            DenormalizeOperation.this,
            new MassRowChange(newRows)
View Full Code Here

                rowIndex,
                cellIndex,
                value
            );

            HistoryEntry historyEntry = project.processManager.queueProcess(process);
            if (historyEntry != null) {
                /*
                 * If the operation has been done, return the new cell's data
                 * so the client side can update the cell's rendering right away.
                 */
                JSONWriter writer = new JSONWriter(response.getWriter());

                Pool pool = new Pool();
                Properties options = new Properties();
                options.put("pool", pool);

                writer.object();
                writer.key("code"); writer.value("ok");
                writer.key("historyEntry"); historyEntry.write(writer, options);
                writer.key("cell"); process.newCell.write(writer, options);
                writer.key("pool"); pool.write(writer, options);
                writer.endObject();
            } else {
                respond(response, "{ \"code\" : \"pending\" }");
View Full Code Here

                "Edit single cell on row " + (rowIndex + 1) +
                ", column " + column.getName();

            Change change = new CellChange(rowIndex, cellIndex, cell, newCell);

            return new HistoryEntry(
                historyEntryID, _project, description, null, change);
        }
View Full Code Here

                }
            }
           
            if (!_canceled) {
               
                HistoryEntry historyEntry = new HistoryEntry(
                    _historyEntryID,
                    _project,
                    _description,
                    ColumnAdditionByFetchingURLsOperation.this,
                    new ColumnAdditionChange(
View Full Code Here

       
        String description = createDescription(column, cellsAtRows);
       
        Change change = new ColumnAdditionChange(_newColumnName, _columnInsertIndex, cellsAtRows);
       
        return new HistoryEntry(
            historyEntryID, project, description, this, change);
    }
View Full Code Here

            throw new Exception("Another column already named " + _newColumnName);
        }
       
        Change change = new ColumnRenameChange(_oldColumnName, _newColumnName);
       
        return new HistoryEntry(historyEntryID, project, getBriefDescription(null), ColumnRenameOperation.this, change);
    }
View Full Code Here

TOP

Related Classes of com.google.refine.history.HistoryEntry

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.