Class RepairDataCollector

java.lang.Object
com.atlassian.greenhopper.service.lexorank.repair.RepairDataCollector

public class RepairDataCollector extends Object
This class is responsible for collecting and recalculating LexoRank data for the purpose of repair. It collects the necessary rank data, recalculates new rank values and validates its integrity.
  • Constructor Details

  • Method Details

    • collectAndRecalculateRanks

      public List<RepairDataCollector.RepairTask> collectAndRecalculateRanks() throws com.atlassian.greenhopper.service.lexorank.repair.RepairException
      Collects the necessary rank data, validates its integrity, and recalculates new rank values to ensure consistent and accurate ranking. This method encapsulates the process of preparing and adjusting rank information as part of a repair operation, without modifying the original data.
      Returns:
      a list of RepairTask objects representing the in-memory recalculated ranks.
      Throws:
      com.atlassian.greenhopper.service.lexorank.repair.RepairException
    • add

      public void add(LexoRankRow rank)
      Adds a new rank to the internal data structure.
      Parameters:
      rank - the rank to add