public class StringColumnCfcm extends CreateFrameColumnMaker
index
Constructor and Description |
---|
StringColumnCfcm() |
StringColumnCfcm(java.lang.String colName,
int length) |
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.
|
int |
workAmount()
Relative amount of work this column maker performs to fill a chunk.
|
columnDomains, numColumns, setIndex
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public StringColumnCfcm()
public StringColumnCfcm(java.lang.String colName, int length)
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 float byteSizePerRow()
CreateFrameColumnMaker
byteSizePerRow
in class CreateFrameColumnMaker
public int workAmount()
CreateFrameColumnMaker
Relative amount of work this column maker performs to fill a chunk. The base amount of 100 corresponds to a method that draws a single random number per row and then uses simple arithmetic before adding a value to the NewChunk.
The output will be used to inform te Job
about progress
being made. It needn't be very precise.
workAmount
in class CreateFrameColumnMaker