Interface Group
-
public interface Group
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacceptSuspects(java.util.Set<com.onwbp.adaptation.Adaptation> suspectRecords)Confirms a set of records that have been identified as suspects are duplicate with the records in the group.java.math.BigDecimalgetGroupId()Allow to return the id of the groupjava.lang.StringgetGroupLabel()Allows to return the label of a groupRecordIterablegetMatches()Allows to return records that have been identified as matchesRecordIterablegetSuspects()Allows to return records that have been identified as suspectscom.onwbp.adaptation.AdaptationTablegetTable()Allows to return an EBX tablevoidrejectSuspects(java.util.Set<com.onwbp.adaptation.Adaptation> suspectRecords)Confirms a set of records that have been identified as suspects are not suspect with the records in the group.voidremoveMatches(java.util.Set<com.onwbp.adaptation.Adaptation> matchedRecords)Confirms a set of records that have been identified as matches are false positive records.
-
-
-
Method Detail
-
getTable
com.onwbp.adaptation.AdaptationTable getTable()
Allows to return an EBX table
- Returns:
- an EBX table
-
getMatches
RecordIterable getMatches()
Allows to return records that have been identified as matches
- Returns:
- the matched records
-
getSuspects
RecordIterable getSuspects()
Allows to return records that have been identified as suspects
- Returns:
- the suspected records
-
getGroupId
java.math.BigDecimal getGroupId()
Allow to return the id of the group
- Returns:
- the group id
-
getGroupLabel
java.lang.String getGroupLabel()
Allows to return the label of a group
- Returns:
- the label of a group
-
removeMatches
void removeMatches(java.util.Set<com.onwbp.adaptation.Adaptation> matchedRecords)
Confirms a set of records that have been identified as matches are false positive records. These records will be moved out of this group.- Parameters:
matchedRecords- the group's set of matched records- Throws:
java.lang.IllegalStateException- when unexpected technical errors occurjava.lang.IllegalArgumentException- when one of the following errors occurs:- At least one of the given records is not a match of the group.
- The group's center record is being removed from the groups.
-
acceptSuspects
void acceptSuspects(java.util.Set<com.onwbp.adaptation.Adaptation> suspectRecords)
Confirms a set of records that have been identified as suspects are duplicate with the records in the group.- Parameters:
suspectRecords- the group's set of suspect records- Throws:
java.lang.IllegalStateException- when unexpected technical errors occurjava.lang.IllegalArgumentException- when at least one of the given records is not a suspect of the group. TODO cls
-
rejectSuspects
void rejectSuspects(java.util.Set<com.onwbp.adaptation.Adaptation> suspectRecords)
Confirms a set of records that have been identified as suspects are not suspect with the records in the group. These records will not be included in next running matching times.- Parameters:
suspectRecords- the group's set of suspect records- Throws:
java.lang.IllegalStateException- when unexpected technical errors occurjava.lang.IllegalArgumentException- when at least one of the given records is not a suspect of the group. TODO cls
-
-