Examples of HistoryEntry


Examples of com.google.refine.history.HistoryEntry

                    newRows.add(newRow);
                }
            }
        }
       
        return new HistoryEntry(
            historyEntryID,
            project,
            getBriefDescription(null),
            this,
            new MassRowColumnChange(newColumns, newRows)
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

        List<Integer> rowIndices = new ArrayList<Integer>();
       
        FilteredRows filteredRows = engine.getAllFilteredRows();
        filteredRows.accept(project, createRowVisitor(project, rowIndices));
       
        return new HistoryEntry(
            historyEntryID,
            project,
            "Remove " + rowIndices.size() + " rows",
            this,
            new RowRemovalChange(rowIndices)
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

                    }
                }
            }
        }
       
        return new HistoryEntry(
            historyEntryID,
            project,
            getBriefDescription(),
            this,
            new MassRowColumnChange(newColumns, newRows)
View Full Code Here

Examples of com.google.refine.history.HistoryEntry

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

Examples of com.google.refine.history.HistoryEntry

        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

Examples of com.google.refine.history.HistoryEntry

            }
           
            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

Examples of com.google.refine.history.HistoryEntry

            }

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

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

Examples of com.google.refine.history.HistoryEntry

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

Examples of com.google.refine.history.HistoryEntry

                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

Examples of com.google.refine.history.HistoryEntry

                "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
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.