Interface AsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile>
- Type Parameters:
T- - the type of search profile data
- All Superinterfaces:
AsCacheAwareStrategy<T>
- All Known Implementing Classes:
AbstractAsSearchProfileCalculationStrategy,AsGenericSearchProfileCalculationStrategy
public interface AsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile>
extends AsCacheAwareStrategy<T>
Strategy for calculating search profiles.
-
Method Summary
Modifier and TypeMethodDescriptioncalculate(AsSearchProfileContext context, T searchProfile) Calculates the search profile result for a given search profile data object.default AsSearchProfileResultmap(AsSearchProfileContext context, AsSearchProfileResult result) Allows additional processing on the search profile result.Methods inherited from interface de.hybris.platform.adaptivesearch.strategies.AsCacheAwareStrategy
getCacheKeyFragment
-
Method Details
-
calculate
Calculates the search profile result for a given search profile data object. The returned value can be cached.- Parameters:
context- - the search profile contextsearchProfile- - the search profile data- Returns:
- the search profile result
-
map
Allows additional processing on the search profile result. This method should not modify the given search profile result. The returned value should not be cached.- Parameters:
context- - the search profile contextresult- - the search profile result- Returns:
- the new search profile result
-