Class RankProfileList
- java.lang.Object
-
- com.yahoo.searchdefinition.derived.Derived
-
- com.yahoo.searchdefinition.derived.RankProfileList
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,Exportable
,com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer
,com.yahoo.vespa.config.search.RankProfilesConfig.Producer
public class RankProfileList extends Derived implements com.yahoo.vespa.config.search.RankProfilesConfig.Producer, com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer
The derived rank profiles of a search definition- Author:
- bratseth
-
-
Field Summary
Fields Modifier and Type Field Description static RankProfileList
empty
-
Constructor Summary
Constructors Constructor Description RankProfileList(Search search, RankingConstants rankingConstants, AttributeFields attributeFields, RankProfileRegistry rankProfileRegistry, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels, com.yahoo.config.model.api.ModelContext.Properties deployProperties)
Creates a rank profile
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getConfig(com.yahoo.vespa.config.search.core.RankingConstantsConfig.Builder builder)
void
getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
java.lang.String
getDerivedName()
RawRankProfile
getRankProfile(java.lang.String name)
Returns the raw rank profile with the given name, or null if it is not presentjava.util.Map<java.lang.String,RawRankProfile>
getRankProfiles()
void
sendConstantsTo(java.util.Collection<? extends AbstractService> services)
-
-
-
Field Detail
-
empty
public static RankProfileList empty
-
-
Constructor Detail
-
RankProfileList
public RankProfileList(Search search, RankingConstants rankingConstants, AttributeFields attributeFields, RankProfileRegistry rankProfileRegistry, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels, com.yahoo.config.model.api.ModelContext.Properties deployProperties)
Creates a rank profile- Parameters:
search
- the search definition this is a rank profile fromattributeFields
- the attribute fields to create a ranking for
-
-
Method Detail
-
getRankProfiles
public java.util.Map<java.lang.String,RawRankProfile> getRankProfiles()
-
getRankProfile
public RawRankProfile getRankProfile(java.lang.String name)
Returns the raw rank profile with the given name, or null if it is not present
-
sendConstantsTo
public void sendConstantsTo(java.util.Collection<? extends AbstractService> services)
-
getDerivedName
public java.lang.String getDerivedName()
- Specified by:
getDerivedName
in classDerived
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.RankProfilesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.RankingConstantsConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer
-
-