Package org.openrefine.history.dag
Class AdditionSlice
- java.lang.Object
-
- org.openrefine.history.dag.AdditionSlice
-
-
Constructor Summary
Constructors Constructor Description AdditionSlice(Set<String> inputColumns, List<ColumnMetadata> outputColumns, int insertionPosition)
-
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)
Set<String>
getInputColumns()
int
getInsertionPosition()
List<ColumnMetadata>
getOutputColumns()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
AdditionSlice
public AdditionSlice(Set<String> inputColumns, List<ColumnMetadata> outputColumns, int insertionPosition)
-
-
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
-
getInputColumns
public Set<String> getInputColumns()
- Returns:
- the set of column names this slice depends on
-
getOutputColumns
public List<ColumnMetadata> getOutputColumns()
- Returns:
- the list of columns created by the operation, in the insertion order
-
getInsertionPosition
public int getInsertionPosition()
- Returns:
- the position in the list of columns where new columns are inserted
-
-