Package com.google.refine.operations.row
Class RowAdditionOperation
java.lang.Object
com.google.refine.model.AbstractOperation
com.google.refine.operations.row.RowAdditionOperation
-
Constructor Summary
ConstructorsConstructorDescriptionRowAdditionOperation(List<Row> rows, int insertionIndex) RowAdditionOperation(List<Row> addedRows, List<Object> rows, int insertionIndex) Deprecated.should not be called directly, is only provided for JSON deserialization. -
Method Summary
Modifier and TypeMethodDescriptionprotected HistoryEntrycreateHistoryEntry(Project project, long historyEntryID) protected StringgetBriefDescription(Project project) intgetRows()Methods inherited from class com.google.refine.model.AbstractOperation
createProcess, getJsonDescription, getOperationId, validate
-
Constructor Details
-
RowAdditionOperation
-
RowAdditionOperation
Deprecated.should not be called directly, is only provided for JSON deserialization.Deserialization constructor to provide compatibility for the legacy serialization format. In this format, only the number of rows is relevant: the contents of the rows must be ignored, because they might have been corrupted due to mutability issues in https://github.com/OpenRefine/OpenRefine/issues/7245.- Parameters:
addedRows- the rows to add to the projectrows- a legacy serialization field, whose length is is the only thing that matters. If provided, it will be converted to a list of empty rows of the same size.insertionIndex- the place in the grid where to insert this list.
-
-
Method Details
-
getRows
-
getInsertionIndex
public int getInsertionIndex() -
getBriefDescription
- Overrides:
getBriefDescriptionin classAbstractOperation
-
createHistoryEntry
- Overrides:
createHistoryEntryin classAbstractOperation- Throws:
Exception
-