Search in sources :

Example 1 with RowRemovalChange

use of com.google.refine.model.changes.RowRemovalChange in project OpenRefine by OpenRefine.

the class RowRemovalOperation method createHistoryEntry.

@Override
protected HistoryEntry createHistoryEntry(Project project, long historyEntryID) throws Exception {
    Engine engine = createEngine(project);
    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));
}
Also used : RowRemovalChange(com.google.refine.model.changes.RowRemovalChange) ArrayList(java.util.ArrayList) HistoryEntry(com.google.refine.history.HistoryEntry) FilteredRows(com.google.refine.browsing.FilteredRows) Engine(com.google.refine.browsing.Engine)

Aggregations

Engine (com.google.refine.browsing.Engine)1 FilteredRows (com.google.refine.browsing.FilteredRows)1 HistoryEntry (com.google.refine.history.HistoryEntry)1 RowRemovalChange (com.google.refine.model.changes.RowRemovalChange)1 ArrayList (java.util.ArrayList)1