public class CategoricalColumnCfcm extends CreateFrameColumnMaker
index
Constructor and Description |
---|
CategoricalColumnCfcm() |
CategoricalColumnCfcm(java.lang.String colName,
int nFactors) |
Modifier and Type | Method and Description |
---|---|
float |
byteSizePerRow()
Estimated byte size of a single row created by this column maker.
|
java.lang.String[][] |
columnDomains()
Domains for categorical columns being created (if any).
|
java.lang.String[] |
columnNames()
Names of the columns produces by this column maker.
|
byte[] |
columnTypes()
Types of the columns produced by the column maker.
|
void |
exec(int nrows,
NewChunk[] ncs,
java.util.Random rng)
Implement this method in a subclass to actually build the columns.
|
numColumns, setIndex, workAmount
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public CategoricalColumnCfcm()
public CategoricalColumnCfcm(java.lang.String colName, int nFactors)
public void exec(int nrows, NewChunk[] ncs, java.util.Random rng)
CreateFrameColumnMaker
exec
in class CreateFrameColumnMaker
nrows
- Number of rows in the current chunk. If method is creating new columns,
then it is supposed to add this many rows.ncs
- The `NewChunk`s array passed down from the `map()` method in `MRTask`.
A subclass is expected to know which NewChunks it is allowed to touch,
usually with the help of the CreateFrameColumnMaker.index
variable.rng
- Random number generator that the subclass may use to fill the columns
randomly. Do NOT use any other random generator as doing so will break
the reproducibility promise of the CreateFrame service.public java.lang.String[] columnNames()
CreateFrameColumnMaker
CreateFrameColumnMaker.numColumns()
.columnNames
in class CreateFrameColumnMaker
public byte[] columnTypes()
CreateFrameColumnMaker
CreateFrameColumnMaker.numColumns()
.columnTypes
in class CreateFrameColumnMaker
public java.lang.String[][] columnDomains()
CreateFrameColumnMaker
columnDomains
in class CreateFrameColumnMaker
public float byteSizePerRow()
CreateFrameColumnMaker
byteSizePerRow
in class CreateFrameColumnMaker