|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.missingval.MissingValueHandlingTable
public final class MissingValueHandlingTable
DataTable that replaces missing values according to ColSetting objects.
Method Summary | |
---|---|
static BufferedDataTable |
createMissingValueHandlingTable(DataTable table,
ColSetting[] colSettings,
ExecutionContext exec,
StringBuffer warningBuffer)
Does missing value handling to the argument table given the col settings in an array and also reports progress. |
(package private) static DataTableSpec |
createTableSpec(DataTableSpec spec,
ColSetting[] sets)
Get the DataTableSpec that is created when creating a MissingValueHandling with the settings sets . |
(package private) ColSetting |
getColSetting(int column)
The column settings for a column. |
DataTableSpec |
getDataTableSpec()
Returns the DataTableSpec object of this table which gives
information about the structure of this data table. |
(package private) RowIterator |
getInternalIterator()
Get RowIterator of underlying table. |
protected DataCell |
getMax(int column)
Delegating method to StatisticsTable. |
protected double |
getMean(int column)
Delegating method to StatisticsTable. |
protected DataCell |
getMin(int column)
Delegating method to StatisticsTable. |
protected DataCell |
getMostFrequent(int column)
Get the most frequent value in a column. |
(package private) int |
getNrRowsInReference()
Tries to retrieve the number of rows in the underlying table. |
(package private) DataTable |
getUnderlyingTable()
Get reference to underlying table. |
RowIterator |
iterator()
Returns a row iterator which returns each row one-by-one from the table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
DataTable getUnderlyingTable()
int getNrRowsInReference()
public DataTableSpec getDataTableSpec()
DataTableSpec
object of this table which gives
information about the structure of this data table.
getDataTableSpec
in interface DataTable
public RowIterator iterator()
iterator
in interface Iterable<DataRow>
iterator
in interface DataTable
DataRow
protected DataCell getMax(int column)
column
- the column of interest
StatisticsTable.getMax(int)
protected double getMean(int column)
column
- the column of interest
Double.NaN
for non-double
columns)StatisticsTable.getMean(int)
protected DataCell getMostFrequent(int column)
column
- the column of interest
StatisticsTable.getMean(int)
protected DataCell getMin(int column)
column
- the column of interest
StatisticsTable.getMin(int)
RowIterator getInternalIterator()
ColSetting getColSetting(int column)
column
- the column of interest
static DataTableSpec createTableSpec(DataTableSpec spec, ColSetting[] sets) throws InvalidSettingsException
sets
.
spec
- the spec of the original input tablesets
- the column settings to apply
InvalidSettingsException
- if the settings don't fit to the datapublic static BufferedDataTable createMissingValueHandlingTable(DataTable table, ColSetting[] colSettings, ExecutionContext exec, StringBuffer warningBuffer) throws CanceledExecutionException
table
- the table to do missing value handling oncolSettings
- the settingsexec
- for progress/cancel and to create the buffered data tablewarningBuffer
- To which potential warning messages are added.
CanceledExecutionException
- if canceled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |