Class RenameColumnPatternProcessor
java.lang.Object
com.lumiomedical.etl.dataframe.processor.column.RenameColumnPatternProcessor
- All Implemented Interfaces:
TableProcessor
public class RenameColumnPatternProcessor extends Object implements TableProcessor
Renames columns from a given table using pattern matching.
A mapping function can be provided to determine what to do with the match results.
By default, the mapping function will simply use the 1st matching group.
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/02/26
-
Constructor Summary
Constructors Constructor Description RenameColumnPatternProcessor(String regex)
RenameColumnPatternProcessor(String regex, BiFunction<String,Matcher,String> mapper)
-
Method Summary
Modifier and Type Method Description tech.tablesaw.api.Table
process(tech.tablesaw.api.Table table)
-
Constructor Details
-
RenameColumnPatternProcessor
- Parameters:
regex
-
-
RenameColumnPatternProcessor
- Parameters:
regex
-mapper
-
-
-
Method Details
-
process
public tech.tablesaw.api.Table process(tech.tablesaw.api.Table table)- Specified by:
process
in interfaceTableProcessor
- Returns:
-