This node uses a 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.
$in_data_0.each do |row|
$out_data_0 << row
end
count = $in_data_0.length
$in_data_0.each_with_index do |row, i|
$out_data_0 << (row << Cells.new.string('Hi!').int(row.getCell(0).to_s.length))
setProgress "#{i*100/count}%" if i%100 != 0
end
$in_data_0.each do |row|
$out_data_0 << Cells.new.string(row[0].to_s.length.to_s)
endYou 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.
To use this node in KNIME, install the extension Ruby Scripting Extension from the below update site following our NodePit Product and Node Installation Guide:
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!