0 ×

Ruby Data Generator

Ruby Script Node extension for KNIME Workbench version 0.0.10

Executes a jRuby script, returning 1 output DataTable. This node allows generating any data or do reading of data from external sources like files, RSS-feeds, HTTP and other Ruby-readable sources. A simple example script is included in the dialog's text window of the Script tab.

This node uses Ruby-wrapper. See knime.rb at ruby4knime

Also, you can include additional gems from an external jRuby installation. But before that do setup jRuby path in preferences.

Please specify Column list before using.


Script output

Column list
Specify the column name and type of all result columns. After adding a new column, click on the name or type to change its value.


Output container housing the outgoing DataTable for output port 0. This must be populated with rows by the script or else there will be no output from the node.
Example use create DataTable with two columns:
  count = 10000
  count.times do |i|
    $out_data_0 << Cells.new.string('Hi!').int(rand i))
    setProgress "#{i*100/count}%" if i%100 != 0

Output Ports

Table containing the results of the Ruby script.



To use this node in KNIME, install Ruby Scripting Extension from the following update site:


You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.


You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.