|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.cellsplit.CellSplitterCellFactory
class CellSplitterCellFactory
Creates the data cells for the new columns of the cell splitter.
Constructor Summary | |
---|---|
CellSplitterCellFactory(DataTableSpec inSpec,
CellSplitterSettings settings)
Constructor. |
Method Summary | |
---|---|
(package private) static CellSplitterSettings |
createNewColumnTypes(BufferedDataTable table,
CellSplitterUserSettings userSettings,
ExecutionContext exec)
Analyzes the values in the user selected column and tries to figure out how many columns are needed to hold the splitted values and of which type the new resulting column have to be. |
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 CellSplitterCellFactory(DataTableSpec inSpec, CellSplitterSettings settings)
inSpec
- the spec from the underlying input tablesettings
- the settings object containing the user settings.Method 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.static CellSplitterSettings createNewColumnTypes(BufferedDataTable table, CellSplitterUserSettings userSettings, ExecutionContext exec) throws CanceledExecutionException
table
- the table with the column to examine (can be null, if no
type guessing is required)userSettings
- user settingsexec
- the execution context to set progress and check for cancel
(can be null)
CanceledExecutionException
- if user cancels
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |