public class QuantileOperator extends StoreResizableDoubleArrayOperator
ASC_NAME_COMPARATOR
Modifier | Constructor and Description |
---|---|
|
QuantileOperator(GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
Constructor for class QuantileOperator.
|
protected |
QuantileOperator(OperatorData operatorData,
GlobalSettings globalSettings,
OperatorColumnSettings opColSettings,
double quantile,
String estimation)
Constructor for class QuantileOperator.
|
Modifier and Type | Method and Description |
---|---|
AggregationOperator |
createInstance(GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
Creates a new instance of this operator.
|
String |
getColumnLabel() |
protected DataType |
getDataType(DataType origType) |
String |
getDescription() |
String |
getDetailedDescription() |
protected DataCell |
getResultInternal() |
org.knime.base.data.aggregation.numerical.QuantileOperator.QuantileSettingsPanel |
getSettingsPanel()
Override this method if the operator requires additional settings.
|
boolean |
hasOptionalSettings()
Override this method and return
true if the operator requires additional settings. |
void |
loadSettingsFrom(NodeSettingsRO settings,
DataTableSpec spec)
Override this method if the operator requires additional settings.
|
void |
loadValidatedSettings(NodeSettingsRO settings)
Override this method if the operator requires additional settings.
|
void |
saveSettingsTo(NodeSettingsWO settings)
Override this method if the operator requires additional settings.
|
void |
validate()
Override this method if the operator requires additional settings.
|
void |
validateSettings(NodeSettingsRO settings)
Override this method if the operator requires additional settings.
|
computeInternal, getCells, resetInternal
compareTo, compute, compute, computeInternal, configure, createColumnSpec, createOperator, equals, getAdditionalColumnNames, getGlobalSettings, getId, getLabel, getMaxUniqueValues, getOperatorColumnSettings, getOperatorData, getResult, getSkipMessage, getSupportedType, getSupportedTypeLabel, getValueDelimiter, hashCode, inclMissingCells, isCompatible, isCompatible, isSkipped, isUsesLimit, keepColumnSpec, reset, setInclMissingFlag, setSkipMessage, setSkipped, supportsMissingValueOption, toString
protected QuantileOperator(OperatorData operatorData, GlobalSettings globalSettings, OperatorColumnSettings opColSettings, double quantile, String estimation)
operatorData
- the operator dataglobalSettings
- the global settingsopColSettings
- the operator column specific settingsquantile
- the quantile valueestimation
- the type of estimationpublic QuantileOperator(GlobalSettings globalSettings, OperatorColumnSettings opColSettings)
globalSettings
- the global settingsopColSettings
- the operator column specific settingsprotected DataType getDataType(DataType origType)
getDataType
in class AggregationOperator
origType
- the DataType
of the original column to aggregateDataType
of the aggregation resultpublic AggregationOperator createInstance(GlobalSettings globalSettings, OperatorColumnSettings opColSettings)
createInstance
in class AggregationOperator
globalSettings
- the global settingsopColSettings
- the operator column specific settingspublic String getColumnLabel()
getColumnLabel
in interface AggregationMethod
getColumnLabel
in class AggregationOperator
protected DataCell getResultInternal()
getResultInternal
in class AggregationOperator
DataCell
public String getDescription()
public String getDetailedDescription()
getDetailedDescription
in class AggregationOperator
public boolean hasOptionalSettings()
true
if the operator requires additional settings.
Override this method and return true
if the operator
requires additional settings.
This method indicates if the operator requires additional settings.
If that is the case the operator should return true
. It must
also override the corresponding methods (#getSettingsPanel(DataTableSpec),
#validateSettings(NodeSettingsRO), #loadValidatedSettings(NodeSettingsRO),
#saveSettingsTo(NodeSettingsWO) and #resetSettings()).hasOptionalSettings
in interface AggregationFunction
hasOptionalSettings
in class AggregationOperator
true
if the operator requires additional
settingsAggregationFunction.getSettingsPanel()
,
AggregationFunction.validateSettings(NodeSettingsRO)
,
AggregationFunction.loadValidatedSettings(NodeSettingsRO)
,
AggregationFunction.loadSettingsFrom(NodeSettingsRO, DataTableSpec)
,
AggregationFunction.saveSettingsTo(NodeSettingsWO)
public org.knime.base.data.aggregation.numerical.QuantileOperator.QuantileSettingsPanel getSettingsPanel()
Component
that allows the user to adjust
all DBAggregationFunction
specific settings. Methods that do need
additional settings must override this method in order to return
their settings panel.getSettingsPanel
in interface AggregationFunction
getSettingsPanel
in class AggregationOperator
public void loadValidatedSettings(NodeSettingsRO settings) throws InvalidSettingsException
AggregationOperator
NodeModel
to load the settings
that have been saved (AggregationFunction.saveSettingsTo(NodeSettingsWO)
) by the
DBAggregationFunction
used in the in the additional settings panel
(AggregationFunction.getSettingsPanel()
) into the DBAggregationFunction
that is actually used in the NodeModel
. Each operator gets its
own NodeSettingsRO
object to ensure the uniqueness of the
settings keys.loadValidatedSettings
in interface AggregationFunction
loadValidatedSettings
in class AggregationOperator
settings
- NodeSettingsRO
that contains the optional
settingsInvalidSettingsException
- if a property is not availablepublic void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec spec) throws NotConfigurableException
AggregationOperator
AggregationFunction.getSettingsPanel()
method
is called and the dialog is opened. This method should be used
to load all settings form the provided settings object and to adjust
the corresponding dialog components accordingly. Each operator gets
its own NodeSettingsRO
object to ensure the uniqueness of the
settings keys.loadSettingsFrom
in interface AggregationFunction
loadSettingsFrom
in class AggregationOperator
settings
- NodeSettingsRO
that contains the optional
settingsspec
- the DataTableSpec
of the input tableNotConfigurableException
- if the dialog cannot be opened because
of invalid settings or if any preconditions are not fulfilled, e.g.
no nominal column in input table, etc.public void saveSettingsTo(NodeSettingsWO settings)
AggregationOperator
NodeDialog
and NodeModel
in
order to save the additional settings. It is also called prior the
AggregationFunction.getSettingsPanel()
method in order to save the current settings.
The saved settings are used to initialize the settings panel by calling
AggregationFunction.loadSettingsFrom(NodeSettingsRO, DataTableSpec)
prior
calling AggregationFunction.getSettingsPanel()
and to restore the previous (default) setting
by calling the AggregationFunction.loadValidatedSettings(NodeSettingsRO)
when the user closes the dialog in any other way then by clicking on the OK button!
Each operator gets its own NodeSettingsRO
object to ensure
the uniqueness of the settings keys.saveSettingsTo
in interface AggregationFunction
saveSettingsTo
in class AggregationOperator
settings
- the NodeSettingsWO
to save the optional settingspublic void validateSettings(NodeSettingsRO settings) throws InvalidSettingsException
AggregationOperator
NodeDialog
when the user closes
the additional settings dialog by clicking on the OK button.
It is also called from the NodeModel
prior the settings are loaded
calling the AggregationFunction.loadValidatedSettings(NodeSettingsRO)
.
Each operator gets its own NodeSettingsRO
object to ensure the
uniqueness of the settings keys.
This function has been replaced by the AggregationFunction.validate()
method.validateSettings
in interface AggregationFunction
validateSettings
in class AggregationOperator
settings
- the NodeSettingsRO
that contains the optional
settings to validateInvalidSettingsException
- if the settings are invalidAggregationFunction.validate()
public void validate() throws InvalidSettingsException
AggregationOperator
AggregationFunction
before saving it.validate
in interface AggregationFunction
validate
in class AggregationOperator
InvalidSettingsException
- if the internal state is invalid
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.