public final class EvenWithDeviation extends AbstractRandom implements IDistribution
Modifier and Type | Field and Description |
---|---|
static String |
LABEL |
static String |
PARENT_LABEL |
Constructor and Description |
---|
EvenWithDeviation() |
Modifier and Type | Method and Description |
---|---|
int |
calculateNewRows(CreateParent[] parents,
int numExistRows,
List<String[]> rows)
Returns the number of new rows necessary.
|
void |
distribute(List<String> columns,
CreateParent[] parents,
List<String[]> rows)
Assigns values to the foreign key columns in the new data rows.
|
getRandom, randomAssignColumn, randomAssignRow, setRandom
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assignRow, assignRowCol
public static final String LABEL
public static final String PARENT_LABEL
public int calculateNewRows(CreateParent[] parents, int numExistRows, List<String[]> rows)
IDistribution
calculateNewRows
in interface IDistribution
parents
- parents for foreign key assignmentsnumExistRows
- number of existing data rowsrows
- existing data rowspublic void distribute(List<String> columns, CreateParent[] parents, List<String[]> rows)
IDistribution
distribute
in interface IDistribution
columns
- column names as used in the rowsparents
- parent tables for foreign key assignementsrows
- all rows including existingCopyright © 2021. All rights reserved.