|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.data.nominal.NominalTable
public class NominalTable
This class wraps a DataTable
into a new one by computing all possible
values for one particular column. This is then returned by the
DataTableSpec.getColumnSpec(int)
method. All
binned columns are then handled as String-valued columns.
Note, this computation can be time consuming, since it is necessary to iterate to the full data table and checking each value.
DataColumnSpec
,
DataTableSpec
Constructor Summary | |
---|---|
NominalTable(BufferedDataTable table,
ExecutionMonitor exec)
Wraps the given table into a new table by computing all possible values for all columns. |
|
NominalTable(BufferedDataTable table,
ExecutionMonitor exec,
int... columnIndex)
Wraps the given table into a new table by computing all possible values for the given column indices. |
|
NominalTable(BufferedDataTable table,
ExecutionMonitor exec,
String... columns)
Wraps the given table into a new table by computing all possible values for the given column . |
Method Summary | |
---|---|
static DataTableSpec |
computeValues(BufferedDataTable table,
ExecutionMonitor exec)
Wraps the given table into a new table by computing all possible values for all columns. |
static DataTableSpec |
computeValues(BufferedDataTable table,
ExecutionMonitor exec,
int... columnIndex)
Finds all possible values based on a table and a number of given column indices by iterating through the table. |
static DataTableSpec |
computeValues(BufferedDataTable table,
ExecutionMonitor exec,
String... columns)
Computes all possible values based in the given table and column name. |
DataTableSpec |
getDataTableSpec()
The table spec which contains at least all possible values for one particular column. |
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 |
Constructor Detail |
---|
public NominalTable(BufferedDataTable table, ExecutionMonitor exec, String... columns) throws CanceledExecutionException
column
.
table
- the data table to work oncolumns
- the column to find nominal values forexec
- object to check with if user canceled
CanceledExecutionException
- if user canceled execution
NullPointerException
- if the table or column
is
null
IllegalArgumentException
- if the column
does not
appear in the table
IllegalStateException
- if the column
appears at
least twice in table
computeValues(BufferedDataTable,ExecutionMonitor,String...)
public NominalTable(BufferedDataTable table, ExecutionMonitor exec) throws CanceledExecutionException
table
- the data table to work onexec
- object to check with if user canceled
CanceledExecutionException
- if user canceled execution
NullPointerException
- if the table is null
public NominalTable(BufferedDataTable table, ExecutionMonitor exec, int... columnIndex) throws CanceledExecutionException
table
- the data table to work oncolumnIndex
- the selected columnsexec
- object to check with if user canceled
CanceledExecutionException
- if user canceled execution
NullPointerException
- if the table is null
IndexOutOfBoundsException
- if the column index is not in the range
of the table
IllegalArgumentException
- if the array of column indices is not
sortedMethod Detail |
---|
public static final DataTableSpec computeValues(BufferedDataTable table, ExecutionMonitor exec) throws CanceledExecutionException
table
- the data table to work onexec
- object to check with if user canceled
CanceledExecutionException
- if user canceled execution
NullPointerException
- if the table is null
public DataTableSpec getDataTableSpec()
getDataTableSpec
in interface DataTable
public RowIterator iterator()
DataTable
iterator
in interface Iterable<DataRow>
iterator
in interface DataTable
DataTable.iterator()
public static final DataTableSpec computeValues(BufferedDataTable table, ExecutionMonitor exec, String... columns) throws CanceledExecutionException
table
- the underlying tablecolumns
- the columns to retrieve all possible values forexec
- object to check with if user canceled operation
NullPointerException
- if either the table
or the
columns
array is null
IllegalArgumentException
- if the column
does not
appear in the data
IllegalStateException
- if the column
appears at
least twice in the table
CanceledExecutionException
- if user canceled executioncomputeValues(BufferedDataTable,ExecutionMonitor,int...)
public static final DataTableSpec computeValues(BufferedDataTable table, ExecutionMonitor exec, int... columnIndex) throws CanceledExecutionException
table
- ihe table to get values fromcolumnIndex
- an array of sorted column indicesexec
- an object to check if user canceled
NullPointerException
- if the table is null
IllegalArgumentException
- if column indices are not sorted
IndexOutOfBoundsException
- if a column index is out of range
CanceledExecutionException
- if user canceled operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |