Streaming with Custom Nodes?

Does anyone know if custom nodes are capable of streaming?

If so how can this be implemented and what are the requirements in the code of the custom nodes?

Yes. In the most simple case, you inherit from a class org.knime.core.node.streamable.simple.SimpleStreamableFunctionNodeModel.

For more complex cases, you might need to do more “manual” effort. A good source for example code is always NodePit where you can search for an existing KNIME node which is “streamable”, then click the “Show Source Code” button (in the section “Developers”), which will lead you to the Git repository (if it’s publicly available).

Example: https://nodepit.com/node/org.knime.base.node.preproc.stringmanipulation.StringManipulationNodeFactory#developers

Hope this helps!

5 Likes

Thanks! That was exactly what I was looking for.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.