|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.binner.BinnerColumnFactory
final class BinnerColumnFactory
Factory to generate binned string cells from a selected column which can be either replaced or appended.
Nested Class Summary | |
---|---|
static interface |
BinnerColumnFactory.Bin
General bin. |
Constructor Summary | |
---|---|
BinnerColumnFactory(int columnIdx,
BinnerColumnFactory.Bin[] bins,
String name,
boolean append)
A binned column created by name and a number of bins. |
Method Summary | |
---|---|
(package private) DataCell |
apply(DataCell cell)
Apply a value to this bining trying to cover it at all available Bin s. |
(package private) BinnerColumnFactory.Bin |
getBin(int index)
Return Bin for index. |
DataCell[] |
getCells(DataRow row)
Get the new cells for a given row. |
(package private) int |
getColumnIndex()
|
(package private) DataColumnSpec |
getColumnSpec()
|
DataColumnSpec[] |
getColumnSpecs()
The column specs for the cells that are generated in the getCells() method. |
(package private) int |
getNrBins()
|
(package private) boolean |
isAppendedColumn()
|
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 |
---|
BinnerColumnFactory(int columnIdx, BinnerColumnFactory.Bin[] bins, String name, boolean append)
columnIdx
- the column index to binname
- the new binned column namebins
- a set of binsappend
- append or replace columnMethod Detail |
---|
int getColumnIndex()
boolean isAppendedColumn()
DataColumnSpec getColumnSpec()
int getNrBins()
BinnerColumnFactory.Bin getBin(int index)
Bin
for index.
index
- for this index
DataCell apply(DataCell cell)
Bin
s.
cell
- the value to cover
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 |