Package org.openrefine.history.dag
Class ReorderSlice
- java.lang.Object
-
- org.openrefine.history.dag.ReorderSlice
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnModelapplyToColumns(ColumnModel columns)Given the list of columns before the change, return the list of columns after the slice.booleanequals(Object other)Map<String,String>getRenames()List<String>getReorderedColumns()inthashCode()StringtoString()
-
-
-
Method Detail
-
applyToColumns
public ColumnModel applyToColumns(ColumnModel columns) throws IncompatibleSliceException
Description copied from interface:DagSliceGiven the list of columns before the change, return the list of columns after the slice.- Specified by:
applyToColumnsin interfaceDagSlice- Parameters:
columns- the column metadata before the change, in project order- Returns:
- the column metadata after the change
- Throws:
IncompatibleSliceException
-
getReorderedColumns
public List<String> getReorderedColumns()
- Returns:
- the list of column names after reordering, but before renaming
-
getRenames
public Map<String,String> getRenames()
- Returns:
- the column renames, as a map from old names to new names
-
-