|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CellFactory
Factory for a ColumnRearranger to provide new columns which are, e.g. appended to a given table.
Note, it's strongly recommend to extend the abstract classes
AbstractCellFactory and SingleCellFactory instead of
implementing this interface. These classes also enable the parallel
processing of the input table.
ColumnRearranger,
ColumnRearranger.append(CellFactory)| 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. |
| Method Detail |
|---|
DataCell[] getCells(DataRow row)
row - The row of interest.
IllegalArgumentException - If there is no mapping available.DataColumnSpec[] getColumnSpecs()
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.
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 | |||||||||