use of org.knime.core.node.streamable.InputPortRole 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