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

Java Snippet

Scripting Java Streamable
Drag & drop
Like
Copy short link

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:

  1. Go to item

Related workflows & nodes

  1. Go to item
    Extract PDF Signatures
    Pdf
    Ermöglicht das Extrahieren von Signaturen aus PDF Dokumenten Die Eingabetabelle muss eine…
    bschubert > Public > Extract PDF Signatures
  2. Go to item
    Install Anaconda Packages
    This workflow shows how a Java Snippet can be used to retrieve settings from the KNIME pr…
    alexanderfillbrunn > Public > Helpers > Install Anaconda Packages
  3. Go to item
    Java Snippet Using External Library
    Workflow Snippet Java
    In some cases there is no KNIME node available that performs a desired transformation. Th…
    knime > Workflow Snippets > Java Snippet Using External Library
  4. Go to item
    Use Java Snippet to set multiple constant values at once
    Java Snippet Id
    +4
    Use Java Snippet to set multiple constant values at once
    mlauber71 > Public > kn_example_java_multiple_constant_values
  5. Go to item
    Hash alternative without extensions
    bruno29a > Public > Forum > Hash alternative without extensions
  6. Go to item
    KNIME CONTROLL COMTIUTER
    nuke_attokurov > Parser Python & KNIME > KNIME CONTROLL COMTIUTER
  7. Go to item
    KnimePixelSize
    nuke_attokurov > Parser Python & KNIME > KnimePixelSize
  8. Go to item
    Clear Outside Defined Sphere
    Imagej Imglib2 Imglib2-roi
    +1
    This workflow illustrates use of a Java Snippet node to perform custom image processing u…
    ctrueden > Public > Clear-Outside-Sphere
  9. Go to item
    DNS lookup + resolve
    gab1one > Public > Forum > DNS lookup & resolve
  10. Go to item
    web
    nakres > Public > web
  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
  5. Go to item
  6. Go to item

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
© 2022 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits