Class VespaModelFactory

  • All Implemented Interfaces:
    com.yahoo.config.model.api.ModelFactory

    public class VespaModelFactory
    extends java.lang.Object
    implements com.yahoo.config.model.api.ModelFactory
    Factory for creating VespaModel instances.
    Author:
    Ulf Lilleengen
    • Constructor Summary

      Constructors 
      Constructor Description
      VespaModelFactory​(com.yahoo.component.provider.ComponentRegistry<com.yahoo.config.model.api.ConfigModelPlugin> pluginRegistry, com.yahoo.component.provider.ComponentRegistry<ai.vespa.rankingexpression.importer.configmodelview.MlModelImporter> modelImporters, com.yahoo.config.provision.Zone zone)
      Creates a factory for Vespa models for this version of the source
      VespaModelFactory​(com.yahoo.component.Version version, ConfigModelRegistry configModelRegistry, java.time.Clock clock, com.yahoo.config.provision.Zone zone)  
      VespaModelFactory​(ConfigModelRegistry configModelRegistry)  
      VespaModelFactory​(ConfigModelRegistry configModelRegistry, java.time.Clock clock)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.yahoo.config.model.api.ModelCreateResult createAndValidateModel​(com.yahoo.config.model.api.ModelContext modelContext, com.yahoo.config.model.api.ValidationParameters validationParameters)  
      com.yahoo.config.model.api.Model createModel​(com.yahoo.config.model.api.ModelContext modelContext)  
      com.yahoo.component.Version version()
      Returns the version this model is build for
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VespaModelFactory

        @Inject
        public VespaModelFactory​(com.yahoo.component.provider.ComponentRegistry<com.yahoo.config.model.api.ConfigModelPlugin> pluginRegistry,
                                 com.yahoo.component.provider.ComponentRegistry<ai.vespa.rankingexpression.importer.configmodelview.MlModelImporter> modelImporters,
                                 com.yahoo.config.provision.Zone zone)
        Creates a factory for Vespa models for this version of the source
      • VespaModelFactory

        public VespaModelFactory​(ConfigModelRegistry configModelRegistry,
                                 java.time.Clock clock)
      • VespaModelFactory

        public VespaModelFactory​(com.yahoo.component.Version version,
                                 ConfigModelRegistry configModelRegistry,
                                 java.time.Clock clock,
                                 com.yahoo.config.provision.Zone zone)
    • Method Detail

      • version

        public com.yahoo.component.Version version()
        Returns the version this model is build for
        Specified by:
        version in interface com.yahoo.config.model.api.ModelFactory
      • createModel

        public com.yahoo.config.model.api.Model createModel​(com.yahoo.config.model.api.ModelContext modelContext)
        Specified by:
        createModel in interface com.yahoo.config.model.api.ModelFactory
      • createAndValidateModel

        public com.yahoo.config.model.api.ModelCreateResult createAndValidateModel​(com.yahoo.config.model.api.ModelContext modelContext,
                                                                                   com.yahoo.config.model.api.ValidationParameters validationParameters)
        Specified by:
        createAndValidateModel in interface com.yahoo.config.model.api.ModelFactory