Class MapColumnProcessor<T,C extends tech.tablesaw.columns.Column<T>>
java.lang.Object
com.lumiomedical.etl.dataframe.processor.column.MapColumnProcessor<T,C>
- All Implemented Interfaces:
TableProcessor
- Direct Known Subclasses:
RegexReplaceProcessor
,StringReplaceProcessor
public class MapColumnProcessor<T,C extends tech.tablesaw.columns.Column<T>> extends Object implements TableProcessor
Transforms the values in a given set of columns using a provided mapping function.
The column target type is expected to be the same as the origin type (ie. column mutation is not possible).
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/03/17
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MapColumnProcessor(ColumnDescriptor<T,C> descriptor, Function<T,T> mapper, String... columnNames)
MapColumnProcessor(ColumnDescriptor<T,C> descriptor, Function<T,T> mapper, Collection<String> columnNames)
-
Method Summary
Modifier and Type Method Description tech.tablesaw.api.Table
process(tech.tablesaw.api.Table table)
-
Field Details
-
Constructor Details
-
MapColumnProcessor
public MapColumnProcessor(ColumnDescriptor<T,C> descriptor, Function<T,T> mapper, String... columnNames)- Parameters:
descriptor
-mapper
-columnNames
-
-
MapColumnProcessor
public MapColumnProcessor(ColumnDescriptor<T,C> descriptor, Function<T,T> mapper, Collection<String> columnNames)- Parameters:
descriptor
-mapper
-columnNames
-
-
-
Method Details
-
process
public tech.tablesaw.api.Table process(tech.tablesaw.api.Table table)- Specified by:
process
in interfaceTableProcessor
- Returns:
-