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 ColumnModel
applyToColumns(ColumnModel columns)
Given the list of columns before the change, return the list of columns after the slice.boolean
equals(Object other)
Map<String,String>
getRenames()
List<String>
getReorderedColumns()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
applyToColumns
public ColumnModel applyToColumns(ColumnModel columns) throws IncompatibleSliceException
Description copied from interface:DagSlice
Given the list of columns before the change, return the list of columns after the slice.- Specified by:
applyToColumns
in 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
-
-