public interface DisambiguationUpdateStrategy
See DefaultDisambiguationUpdateStrategies for a couple of implemented strategies.
DefaultDisambiguationUpdateStrategies| Modifier and Type | Method and Description |
|---|---|
EnumSet<ResourceResolution> |
alwaysRepartitionableResolutions() |
<T> boolean |
partitionFurther(ReportPartitions<T> partitions)
The disambiguation procedure calls this method for every not yet fully unique
partitions set when it determines that further disambiguation should be performed.
|
EnumSet<ResourceResolution> |
resourceLevelRepartitionableResolutions() |
<T> void |
update(DisambiguationPolicy policy,
MutableDisambiguationReport<T> report)
Updates the report using the policy.
|
<T> void update(DisambiguationPolicy policy, MutableDisambiguationReport<T> report)
ResourceResolution#update(MutableDisambiguationReport.Resource)
method. This method is then called to ensure that the report as a whole conforms to the policy *and* this
strategy. This might entail removing some elements from the parent list for example.T - policy - report - EnumSet<ResourceResolution> resourceLevelRepartitionableResolutions()
EnumSet<ResourceResolution> alwaysRepartitionableResolutions()
resourceLevelRepartitionableResolutions().<T> boolean partitionFurther(ReportPartitions<T> partitions)
But this is not always necessary, depending on the update strategy implementation.
This method is therefore the means for the update strategy to short-circuit the disambiguation procedure when it determines that further disambiguation would not make sense for this strategy.
T - partitions - the partitions object holding a subset of the results being disambiguated along
with the policy that is used to disambiguate themCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.