Search in sources :

Example 1 with Expression

use of org.knime.ext.sun.nodes.script.expression.Expression in project knime-core by knime.

the class JavaRowSplitterNodeModel method getInputPortRoles.

/**
 * {@inheritDoc}
 */
@Override
public InputPortRole[] getInputPortRoles() {
    boolean isStreamable, isDistributable;
    Expression exp = m_settings == null ? null : m_settings.getCompiledExpression();
    if (exp == null) {
        isStreamable = false;
        isDistributable = false;
    } else {
        isStreamable = true;
        isDistributable = !exp.usesRowIndex();
    }
    return new InputPortRole[] { InputPortRole.get(isDistributable, isStreamable) };
}
Also used : Expression(org.knime.ext.sun.nodes.script.expression.Expression) InputPortRole(org.knime.core.node.streamable.InputPortRole)

Aggregations

InputPortRole (org.knime.core.node.streamable.InputPortRole)1 Expression (org.knime.ext.sun.nodes.script.expression.Expression)1