Class RawRankProfile

java.lang.Object
com.yahoo.schema.derived.RawRankProfile
All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, com.yahoo.vespa.config.search.RankProfilesConfig.Producer

public class RawRankProfile extends Object implements com.yahoo.vespa.config.search.RankProfilesConfig.Producer
A rank profile derived from a search definition, containing exactly the features available natively in the server RawRankProfile has a long lifetime so do not refer objects not necessary.
Author:
bratseth
  • Constructor Details

    • RawRankProfile

      public RawRankProfile(RankProfile rankProfile, LargeRankingExpressions largeExpressions, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels, AttributeFields attributeFields, com.yahoo.config.model.api.ModelContext.Properties deployProperties)
      Creates a raw rank profile from the given rank profile.
  • Method Details

    • constants

      public Collection<RankProfile.Constant> constants()
    • onnxModels

      public Collection<OnnxModel> onnxModels()
    • getName

      public String getName()
    • configProperties

      public List<com.yahoo.collections.Pair<String,String>> configProperties()
      Returns the properties of this as an unmodifiable list. Note: This method is expensive.
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.search.RankProfilesConfig.Producer
    • toString

      public String toString()
      Overrides:
      toString in class Object