Class RepairDataCollector
java.lang.Object
com.atlassian.greenhopper.service.lexorank.repair.RepairDataCollector
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRepairDataCollector
(SequentialRankCrawler crawler, RepairConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(LexoRankRow rank) Adds a new rank to the internal data structure.Collects the necessary rank data, validates its integrity, and recalculates new rank values to ensure consistent and accurate ranking.
-
Constructor Details
-
RepairDataCollector
-
-
Method Details
-
collectAndRecalculateRanks
public List<RepairDataCollector.RepairTask> collectAndRecalculateRanks() throws com.atlassian.greenhopper.service.lexorank.repair.RepairExceptionCollects 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
Adds a new rank to the internal data structure.- Parameters:
rank
- the rank to add
-