use of org.pentaho.platform.dataaccess.datasource.wizard.models.ColumnInfo in project data-access by pentaho.
the class CsvTransformGenerator method createSelectStep.
protected StepMeta createSelectStep(TransMeta transMeta, String stepName) {
SelectValuesMeta meta = new SelectValuesMeta();
// find out which columns need to be deleted
List<String> deleteNameList = new ArrayList<String>();
for (ColumnInfo column : getModelInfo().getColumns()) {
if (column.isIgnore()) {
deleteNameList.add(column.getId());
}
}
if (deleteNameList.size() == 0) {
return null;
}
String[] deleteName = deleteNameList.toArray(new String[deleteNameList.size()]);
meta.setDeleteName(deleteName);
// meta.setID(3);
StepMeta stepMeta = new StepMeta(stepName, stepName, meta);
transMeta.addStep(stepMeta);
return stepMeta;
}
Aggregations