Class QueryProfiles

  • All Implemented Interfaces:
    com.yahoo.config.ConfigInstance.Producer, com.yahoo.search.query.profile.config.QueryProfilesConfig.Producer, Serializable

    public class QueryProfiles
    extends Object
    implements Serializable, com.yahoo.search.query.profile.config.QueryProfilesConfig.Producer
    Owns the query profiles and query profile types to be handed to the qrs nodes. Owned by a container cluster
    Author:
    bratseth
    See Also:
    Serialized Form
    • Constructor Detail

      • QueryProfiles

        public QueryProfiles​(com.yahoo.search.query.profile.QueryProfileRegistry registry,
                             com.yahoo.config.application.api.DeployLogger logger)
        Creates a new set of query profiles for which the config can be returned at request
        Parameters:
        registry - the registry containing the query profiles and types of this. The given registry cannot be frozen on calling this.
      • QueryProfiles

        public QueryProfiles()
    • Method Detail

      • getRegistry

        public com.yahoo.search.query.profile.QueryProfileRegistry getRegistry()
      • getConfig

        public void getConfig​(com.yahoo.search.query.profile.config.QueryProfilesConfig.Builder builder)
        Specified by:
        getConfig in interface com.yahoo.search.query.profile.config.QueryProfilesConfig.Producer
      • toSpaceSeparatedString

        public String toSpaceSeparatedString​(List<String> list)
      • getConfig

        public com.yahoo.search.query.profile.config.QueryProfilesConfig getConfig()
        Returns the config produced by this