Closed tibuch closed 8 years ago
Every node should generate unique column names. To ensure unique column names one can use some util-classes from KNIME.
Example Code: Only one column:
String uniqueColumnName = DataTableSpec.getUniqueColumnName(inputSpec, "newColumnName");
More than one column:
UniqueNameGenerator ung = new UniqueNameGenerator(inSpecs[0]); DataColumnSpec uniqueColumn = ung.newColumn("newColumnName", StringCell.TYPE);
Nodes with unique column name support:
while going through all nodes, please make sure that the "appendix" label is set correctly and dimensions are also selected as default.
Every node should generate unique column names. To ensure unique column names one can use some util-classes from KNIME.
Example Code: Only one column:
More than one column: