public class RealColumnCfcm extends CreateFrameColumnMaker
index
Constructor and Description |
---|
RealColumnCfcm() |
RealColumnCfcm(java.lang.String colName,
double lBound,
double uBound) |
Modifier and Type | Method and Description |
---|---|
float |
byteSizePerRow()
Estimated byte size of a single row created by this column maker.
|
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.
|
columnDomains, numColumns, setIndex, workAmount
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public RealColumnCfcm()
public RealColumnCfcm(java.lang.String colName, double lBound, double uBound)
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 float byteSizePerRow()
CreateFrameColumnMaker
byteSizePerRow
in class CreateFrameColumnMaker
public byte[] columnTypes()
CreateFrameColumnMaker
CreateFrameColumnMaker.numColumns()
.columnTypes
in class CreateFrameColumnMaker