Skip navigation links

Package org.knime.core.data.convert

KNIME Converter Framework

See: Description

Package org.knime.core.data.convert Description

KNIME Converter Framework

Introduction

This package contains classes to dynamically box and unbox KNIME types from and to Java types. A extension point is provided to allow implementors of custom KNIME data types to provide compatibility with nodes like the Java Snippet node, which use the KNIME Converter Framework.

Packages

Structure

Each of the aforementioned packages contain a *ConverterRegistry class. All of the converters of the respective types are registered and can be retrieved here.

For both of the converter types (JavaToDataCell and DataCellToJava) there are *ConverterFactory classes which produce instances of *Converter classes respectively. This is required since the converter instances may require information only available during node execution and therefore cannot be instantiated before this point.

Arrays/Collection Cells

If there is a Converter from e.g. IntCell to Integer, the framework can automatically handle conversions form ListCell(IntCell) to Integer[] vice versa. Additionally there may be explicit converters from a collection cell or array to a specific Java or DataCell type.

See Also:
JavaToDataCellConverterRegistry, org.knime.core.data.convert.datacell.DataCellToJavaConverterRegistry
Skip navigation links

Copyright, 2003 - 2016. All rights reserved.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.