Package org.openrefine.operations.cell
Class TransposeRowsIntoColumnsOperation
- java.lang.Object
- 
- org.openrefine.operations.cell.TransposeRowsIntoColumnsOperation
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected String_columnNameprotected int_rowCount
 - 
Constructor SummaryConstructors Constructor Description TransposeRowsIntoColumnsOperation(String columnName, int rowCount)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeResultapply(Grid projectState, ChangeContext context)Derives the new grid state from the current grid state.StringgetColumnName()StringgetDescription()A short human-readable description of what this operation does.intgetRowCount()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.openrefine.operations.OperationgetOperationId, isReproducible
 
- 
 
- 
- 
- 
Field Detail- 
_columnNameprotected final String _columnName 
 - 
_rowCountprotected final int _rowCount 
 
- 
 - 
Constructor Detail- 
TransposeRowsIntoColumnsOperationpublic TransposeRowsIntoColumnsOperation(String columnName, int rowCount) 
 
- 
 - 
Method Detail- 
applypublic ChangeResult apply(Grid projectState, ChangeContext context) throws OperationException Description copied from interface:OperationDerives the new grid state from the current grid state. Executing this method should be quick (even on large datasets) since it is expected to just derive the new grid from the existing one without actually executing any expensive computation. Long-running computations should rather go in the derivation of aChangeDatawhich will be fetched asynchronously.- Specified by:
- applyin interface- Operation
- Parameters:
- projectState- the state of the grid before the change
- Returns:
- an object which bundles up various pieces of information produced by the operation: primarily, the new grid after applying the operation. This object can be subclassed to expose more information, which should be serializable with Jackson so that it reaches the frontend.
- Throws:
- OperationException- when the change cannot be applied to the given grid
 
 - 
getRowCountpublic int getRowCount() 
 - 
getColumnNamepublic String getColumnName() 
 - 
getDescriptionpublic String getDescription() Description copied from interface:OperationA short human-readable description of what this operation does.- Specified by:
- getDescriptionin interface- Operation
 
 
- 
 
-