|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.cellsplitbypos.CellSplitterByPosCellFactory
class CellSplitterByPosCellFactory
Creates the data cells for the new columns of the cell splitter.
Constructor Summary | |
---|---|
CellSplitterByPosCellFactory(DataTableSpec inSpec,
String colName,
int[] splitPoints,
String[] colNames)
Le Constucteur. |
Method Summary | |
---|---|
DataCell[] |
getCells(DataRow row)
Get the new cells for a given row. |
DataColumnSpec[] |
getColumnSpecs()
The column specs for the cells that are generated in the getCells() method. |
void |
setProgress(int curRowNr,
int rowCount,
RowKey lastKey,
ExecutionMonitor exec)
This method is called when a row has been processed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CellSplitterByPosCellFactory(DataTableSpec inSpec, String colName, int[] splitPoints, String[] colNames) throws InvalidSettingsException
inSpec
- the spec from the underlying input tablecolName
- the name of the column to splitsplitPoints
- the indices where the input column is supposed to be
splitcolNames
- the new column names of the created columns. Must be
valid (i.e. unique and not existing in input table)
InvalidSettingsException
- if the specified col name is not in the
input spec, or if the number of colNames is different than
requiredMethod Detail |
---|
public DataCell[] getCells(DataRow row)
getCells
in interface CellFactory
row
- The row of interest.
public DataColumnSpec[] getColumnSpecs()
getColumnSpecs
in interface CellFactory
public void setProgress(int curRowNr, int rowCount, RowKey lastKey, ExecutionMonitor exec)
Note, you don't need to check exec.checkCanceled()
in
the implementation as this is done in the calling class.
setProgress
in interface CellFactory
curRowNr
- The number of the row just processedrowCount
- The total number of rows.lastKey
- The row's key.exec
- The execution monitor to report progress to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |