|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisambiguationUpdateStrategy
Defines a strategy for updating a results list with the disambiguation information.
See DefaultDisambiguationUpdateStrategies for a couple of implemented strategies.
DefaultDisambiguationUpdateStrategies| Method Summary | ||
|---|---|---|
EnumSet<ResourceResolution> |
alwaysRepartitionableResolutions()
|
|
|
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()
|
|
|
update(DisambiguationPolicy policy,
MutableDisambiguationReport<T> report)
Updates the report using the policy. |
|
| Method Detail |
|---|
<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 them
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||