Interface AsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile>
-
- Type Parameters:
T
- - the type of search profile data
- All Superinterfaces:
AsCacheAwareStrategy<T>
- All Known Implementing Classes:
AbstractAsSearchProfileCalculationStrategy
,AsCategoryAwareSearchProfileCalculationStrategy
,AsGenericSearchProfileCalculationStrategy
,AsSimpleSearchProfileCalculationStrategy
public interface AsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile> extends AsCacheAwareStrategy<T>
Strategy for calculating search profiles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AsSearchProfileResult
calculate(AsSearchProfileContext context, T searchProfile)
Calculates the search profile result for a given search profile data object.default AsSearchProfileResult
map(AsSearchProfileContext context, AsSearchProfileResult result)
Allows additional processing on the search profile result.-
Methods inherited from interface de.hybris.platform.adaptivesearch.strategies.AsCacheAwareStrategy
getCacheKeyFragment
-
-
-
-
Method Detail
-
calculate
AsSearchProfileResult calculate(AsSearchProfileContext context, T searchProfile)
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
default AsSearchProfileResult map(AsSearchProfileContext context, AsSearchProfileResult result)
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
-
-