Search code examples
javaknime

KNIME custom node output format


Is it possible to set the output format of my custom node to any object i created inside my node? or are there restrictions?


Solution

  • Your output should implement PortObject, and also have a PortObjectSerializer and PortObjectSpec (also with PortObjectSpecSerializer). You need to register that with an extension point, just like this. After that, you can use them.

    I would recommend using existing port objects though. For example PMMLPortObject might be a good alternative if you need tree-like data structures, BufferedDataTable for tabular data, and the ImagePortObject for images. You might consider creating special cell types and store them in regular BufferedDataTables.