Hub
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
Sign in
  • KNIME Hub
  • Nodes
  • Java Snippet
NodeNode / Manipulator

Java Snippet

streamable

This node allows you to execute arbitrary java code to create new columns or replace existing ones. Enter the java code in the text area.

Output Columns and Variables

Output columns are defined by creating and binding a java field for each column. The value assigned to this field will be written to the output.

This node allows adding or modifying flow variables in the same manner.

Additional libraries

It is also possible to use external java libraries (libraries that are not part of java boot classpath). In order to include external jar or zip files, add their location in the "Additional Libraries" tab.

Advanced users may want to make use of a library that is already present in the KNIME Analytics Platform installation as a bundle. Adding them to the list in the "Additional Bundles" tab will make them available to the java snippet's classpath.

Templates

You can define reusable templates with the "Create templates..." button. Templates are stored in the user's workspace by default and can be accessed via the "Templates" tab.

Node details

Input ports
  1. Type: Table
    An input table
    Input table.
Output ports
  1. Type: Table
    Appended table
    Input table with additional or replaced columns.

Extension

The Java Snippet node is part of this extension:

Related workflows & nodes

  1. Extract PDF Signatures
    pdf
    Ermöglicht das Extrahieren von Signaturen aus PDF Dokumenten Die Eingabetabelle muss eine Spalte 'URL' enthalten, in de…
    bschubert > Public > Extract PDF Signatures
  2. Install Anaconda Packages
    This workflow shows how a Java Snippet can be used to retrieve settings from the KNIME preferences in order to get the …
    alexanderfillbrunn > Public > Helpers > Install Anaconda Packages
  3. Clear Outside Defined Sphere
    imagej imglib2 imglib2-roi +1
    This workflow illustrates use of a Java Snippet node to perform custom image processing using the ImgLib2 library. For …
    ctrueden > Public > Clear-Outside-Sphere
  4. DNS lookup + resolve
    gab1one > Public > Forum > DNS lookup & resolve
  5. web
    nakres > Public > web
  6. sample_searchable_filter
    natanaelhupdata > Public > sample_searchable_filter
  7. Use Java Snippet to check if Column is there, fill a FlowVariable and then activate if switch
    column exist java +1
    Use Java Snippet to check if Column is there, fill a FlowVariable and then activate if switch
    mlauber71 > Public > kn_example_java_if_column_exists_switch
  8. KNIME and Java - handle NaN (not a number) and Null - and Missing
    nan Java null +1
    KNIME and Java - handle NaN (not a number) and Null - and Missing
    mlauber71 > Public > kn_example_java_nan_not_a_number_missings_null
  9. Large queries on a public endpoint
    semantic web sparql rdf
    Public endpoints often have a limited return (say 10000 triples) to overcome this and do larger queries one can work wi…
    knime > Examples > 08_Other_Analytics_Types > 06_Semantic_Web > 09_Doing_a_large_Query_on_a_public_endpoint
  10. RDKit Java Snippet Example
    Demonstrates using RDKit functionality directly inside the Java Snippet node. Requires KNIME 3.3+.
    knime > Examples > 99_Community > 03_RDKit > 07_RDKit_with_Java_Snippet_Example

KNIME
Open for Innovation

KNIME AG
Hardturmstrasse 66
8005 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Server
© 2021 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits