|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.data.replace.ReplacedColumnsTable
public class ReplacedColumnsTable
Tables that replaces the values in a given column by other values.
Constructor Summary | |
---|---|
ReplacedColumnsTable(DataTable table,
DataColumnSpec[] specs,
int[] columns,
ReplacedCellsFactory cellFac)
Creates a new replaced column table with several replaced columns. |
|
ReplacedColumnsTable(DataTable table,
DataColumnSpec spec,
int column,
ReplacedCellFactory cellFac)
Creates a new replaced column table with one replaced column. |
Method Summary | |
---|---|
static DataTableSpec |
createTableSpec(DataTableSpec spec,
DataColumnSpec[] cspecs,
int[] columns)
Creates a new table spec with several replaced columns. |
static DataTableSpec |
createTableSpec(DataTableSpec spec,
DataColumnSpec cspec,
int column)
Creates a new table spec with one replaced column. |
DataTableSpec |
getDataTableSpec()
Returns the DataTableSpec object of this table which gives
information about the structure of this data 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 |
Constructor Detail |
---|
public ReplacedColumnsTable(DataTable table, DataColumnSpec spec, int column, ReplacedCellFactory cellFac)
table
- the table to replace one column inspec
- the column spec for the replaced columncolumn
- the column index to replacecellFac
- the factory to get the replacement cells
NullPointerException
- if the factory is null
IndexOutOfBoundsException
- if the column argument is invalidpublic ReplacedColumnsTable(DataTable table, DataColumnSpec[] specs, int[] columns, ReplacedCellsFactory cellFac)
table
- the table to replace one or more columns inspecs
- the column specs for the replaced columnscolumns
- the column indices to replacecellFac
- the factory to get the replacement cells
NullPointerException
- if the factory is null
, or
the arrays contain null
elements
IndexOutOfBoundsException
- if the array arguments are invalidMethod Detail |
---|
public static final DataTableSpec createTableSpec(DataTableSpec spec, DataColumnSpec cspec, int column)
spec
- the table to replace one column incspec
- the new column speccolumn
- at position
IndexOutOfBoundsException
- if the column argument is invalid
NullPointerException
- if any argument is null
public static final DataTableSpec createTableSpec(DataTableSpec spec, DataColumnSpec[] cspecs, int[] columns)
spec
- the table to replace one or more columns incspecs
- the new column specscolumns
- positions
IndexOutOfBoundsException
- if any column argument is invalid
NullPointerException
- if any argument is null
or
contains null
elementspublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |