public interface IDistribution
The following constants will be discovered by reflection on class and used for presentation in the Anonymizer model:
Modifier and Type | Method and Description |
---|---|
static void |
assignRow(CreateParent parent,
List<String> columns,
String[] row,
int nParent) |
static void |
assignRowCol(CreateParent parent,
List<String> columns,
List<String[]> rows,
int nrow,
int nkey)
Assigns values from the parent column to the foreign key column (nkey) in given row (nrow).
|
int |
calculateNewRows(CreateParent[] parents,
int numrows,
List<String[]> existing)
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.
|
int calculateNewRows(CreateParent[] parents, int numrows, List<String[]> existing) throws Exception
parents
- parents for foreign key assignmentsnumrows
- number of existing data rowsexisting
- existing data rowsException
- of any typevoid distribute(List<String> columns, CreateParent[] parents, List<String[]> rows) throws Exception
columns
- column names as used in the rowsparents
- parent tables for foreign key assignementsrows
- all rows including existingException
- of any typestatic void assignRowCol(CreateParent parent, List<String> columns, List<String[]> rows, int nrow, int nkey)
parent
- Parent objectcolumns
- List of column names corresponding to the rowsrows
- List of data rowsnrow
- which rownkey
- which parent rowstatic void assignRow(CreateParent parent, List<String> columns, String[] row, int nParent)
parent
- Parent objectcolumns
- List of column names corresponding to the rowsrow
- row of datanParent
- which parentCopyright © 2021. All rights reserved.