|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.columnTrans.AbstractMany2OneCellFactory
public abstract class AbstractMany2OneCellFactory
Constructor Summary | |
---|---|
AbstractMany2OneCellFactory(DataTableSpec inputSpec,
String appendedColumnName,
int[] includedColsIndices)
|
Method Summary | |
---|---|
abstract int |
findColumnIndex(DataRow row)
Find the column names to put in the condensed column. |
String |
getAppendedColumnName()
|
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. |
int[] |
getIncludedColIndices()
|
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 AbstractMany2OneCellFactory(DataTableSpec inputSpec, String appendedColumnName, int[] includedColsIndices)
inputSpec
- input spec of the whole tableappendedColumnName
- name of the new columnincludedColsIndices
- indices of columns to condenseMethod Detail |
---|
public String getAppendedColumnName()
public int[] getIncludedColIndices()
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.public DataCell[] getCells(DataRow row)
getCells
in interface CellFactory
row
- The row of interest.
public abstract int findColumnIndex(DataRow row)
row
- row to search for matching columns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |