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) };
}
Aggregations