knime-ip / knip

KNIME Image Processing Extension
https://www.knime.com/community/image-processing
50 stars 10 forks source link

Unique Column Names #206

Closed tibuch closed 8 years ago

tibuch commented 9 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);
tibuch commented 9 years ago

Nodes with unique column name support:

dietzc commented 8 years ago

while going through all nodes, please make sure that the "appendix" label is set correctly and dimensions are also selected as default.