Interface Group


  • public interface Group
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      java.math.BigDecimal getGroupId()
      Allow to return the id of the group
      java.lang.String getGroupLabel()
      Allows to return the label of a group
      RecordIterable getMatches()
      Allows to return records that have been identified as matches
      RecordIterable getSuspects()
      Allows to return records that have been identified as suspects
      com.onwbp.adaptation.AdaptationTable getTable()
      Allows to return an EBX table
      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.
      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.
    • 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 occur
        java.lang.IllegalArgumentException - when one of the following errors occurs:
        1. At least one of the given records is not a match of the group.
        2. The group's center record is being removed from the groups.
        TODO cls
      • 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 occur
        java.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 occur
        java.lang.IllegalArgumentException - when at least one of the given records is not a suspect of the group. TODO cls