Interface AsSearchProfileCalculationStrategy<T extends AbstractAsSearchProfile>

    • 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 context
        searchProfile - - 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 context
        result - - the search profile result
        Returns:
        the new search profile result