use of org.knime.base.node.io.database.binning.DBAutoBinner in project knime-core by knime.
the class DBAutoBinnerNodeModel method createPMMLPortObject.
private PMMLPortObject createPMMLPortObject(final DatabasePortObjectSpec inSpec, final DatabaseQueryConnectionSettings connectionSettings, final ExecutionMonitor exec) throws InvalidSettingsException {
DataTableSpec dataTableSpec = inSpec.getDataTableSpec();
DBAutoBinner autoBinner = new DBAutoBinner(m_settings, dataTableSpec);
PMMLPreprocDiscretize pMMLPrepocDiscretize;
try {
pMMLPrepocDiscretize = autoBinner.createPMMLPrepocDiscretize(getCredentialsProvider(), connectionSettings, dataTableSpec);
PMMLPortObject pmmlPortObject = DBAutoBinner.translate(pMMLPrepocDiscretize, dataTableSpec);
return pmmlPortObject;
} catch (SQLException e) {
throw new InvalidSettingsException("Could not retrieve boundaries from database. Exception: " + e.getMessage(), e);
}
}
Aggregations