public class Unique
extends java.lang.Object
| Constructor and Description |
|---|
Unique(java.lang.String idcol,
java.lang.String column,
ErrorReport erReport)
create a Unique object for tuples that have idcol as the name of their
column identifier, column as the name of a column that should have unique
values, and erReport as the ErrorReport object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple t)
register the content of a tuple: get its idcol key, column value,
and see if the column value has been seen before; if so, report an error.
|
public Unique(java.lang.String idcol,
java.lang.String column,
ErrorReport erReport)
idcol - -- name of identifier columncolumn - -- name of column in which no duplicates should existerReport - -- ErrorReport object for accumulating errorspublic void add(Tuple t)
t - -- tuple whose contents are to be registered