data-file-filter-column
Data filter that only permits a subset of columns.
This file filter allows you to refactor columns within your data while you read, write, or convert your files. Given a list of column names, the filter will ensure that only those columns are included in your output.
<dependency> <groupId>net.krotscheck.dfr</groupId> <artifactId>data-file-filter-column</artifactId> <version>1.0.10</version> </dependency>
Example Transformation
Presented is a sample transformation that demonstrations how this filter works:
ColumnFilter filter = new ColumnFilter(new String[]{ "Column1", "Column2", "Column3" }); myEncoder.addFilter(filter);
Input Data
Column1 | Column2 | ColumnA | ColumnB |
---|---|---|---|
Foo | Bar | Zug | Zab |
Output Data
Column1 | Column2 | Column3 |
---|---|---|
Foo | Bar | [null] |