Package org.openrefine.history.dag
Class TransformationSlice
- java.lang.Object
-
- org.openrefine.history.dag.TransformationSlice
-
-
Constructor Summary
Constructors Constructor Description TransformationSlice(String columnName, Set<String> inputColumns)
-
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)StringgetColumnName()Set<String>getInputColumns()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
-
getColumnName
public String getColumnName()
- Returns:
- the name of the column transformed by this operation
-
getInputColumns
public Set<String> getInputColumns()
- Returns:
- the set of column names this slice depends on, which may or may not include the transformed column itself.
-
-