Package com.google.refine.history

Examples of com.google.refine.history.Change


                    stats.nonBlanks,
                    stats.newTopics + newChange,
                    stats.matchedTopics + matchChange);
            }

            Change change = new ReconChange(
                new CellChange(rowIndex, cellIndex, cell, newCell),
                column.getName(),
                column.getReconConfig(),
                stats
            );
View Full Code Here


            String description =
                "Clear recon data for single cell on row " + (rowIndex + 1) +
                ", column " + column.getName() +
                ", containing \"" + cell.value + "\"";

            Change change = new ReconChange(
                new CellChange(rowIndex, cellIndex, cell, newCell),
                column.getName(),
                column.getReconConfig(),
                stats
            );
View Full Code Here

        return "Save schema alignment skeleton";
    }

    @Override
    protected HistoryEntry createHistoryEntry(Project project, long historyEntryID) throws Exception {
        Change change = new ProtographChange(_protograph);
       
        return new HistoryEntry(historyEntryID, project, getBriefDescription(project), SaveProtographOperation.this, change);
    }
View Full Code Here

        }
        if (_index < 0 || _index >= project.columnModel.columns.size()) {
            throw new Exception("New column index out of range " + _index);
        }
       
        Change change = new ColumnMoveChange(_columnName, _index);
       
        return new HistoryEntry(historyEntryID, project, getBriefDescription(null), ColumnMoveOperation.this, change);
    }
View Full Code Here

            throw new Exception("No column named " + _columnName);
        }
       
        String description = "Remove column " + column.getName();
       
        Change change = new ColumnRemovalChange(project.columnModel.columns.indexOf(column));
       
        return new HistoryEntry(historyEntryID, project, description, ColumnRemovalOperation.this, change);
    }
View Full Code Here

                    }
                }
            }
           
            if (!_canceled) {
                Change reconChange = new ReconChange(
                    cellChanges,
                    _columnName,
                    _reconConfig,
                    null
                );
View Full Code Here

            String description =
                "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

        FilteredRows filteredRows = engine.getAllFilteredRows();
        filteredRows.accept(project, createRowVisitor(project, cellsAtRows));
       
        String description = createDescription(column, cellsAtRows);
       
        Change change = new ColumnAdditionChange(_newColumnName, _columnInsertIndex, cellsAtRows);
       
        return new HistoryEntry(
            historyEntryID, project, description, this, change);
    }
View Full Code Here

        }
        if (project.columnModel.getColumnByName(_newColumnName) != null) {
            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

            "Split " + rowIndices.size() +
            " cell(s) in column " + _columnName +
            " into several columns" +
                ("separator".equals(_mode) ? " by separator" : " by field lengths");

        Change change = new ColumnSplitChange(
            _columnName,
            columnNames,
            rowIndices,
            tuples,
            _removeOriginalColumn
View Full Code Here

TOP

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

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.