Class ExecutionFactory

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.search.searchchain.ExecutionFactory
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>

public class ExecutionFactory extends com.yahoo.component.AbstractComponent
Provides creation of fully configured query Execution instances. Have an instance of this injected if you need to execute queries which are not initiated from an external request.
Author:
bratseth
  • Field Summary

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExecutionFactory(com.yahoo.container.core.ChainsConfig chainsConfig, IndexInfoConfig indexInfo, SchemaInfoConfig schemaInfo, com.yahoo.container.QrSearchersConfig clusters, com.yahoo.component.provider.ComponentRegistry<Searcher> searchers, com.yahoo.vespa.configdefinition.SpecialtokensConfig specialTokens, com.yahoo.language.Linguistics linguistics, com.yahoo.component.provider.ComponentRegistry<com.yahoo.processing.rendering.Renderer> renderers, Executor executor)
     
    ExecutionFactory(com.yahoo.container.core.ChainsConfig chainsConfig, IndexInfoConfig indexInfo, SchemaInfo schemaInfo, com.yahoo.container.QrSearchersConfig clusters, com.yahoo.component.provider.ComponentRegistry<Searcher> searchers, com.yahoo.vespa.configdefinition.SpecialtokensConfig specialTokens, com.yahoo.language.Linguistics linguistics, com.yahoo.component.provider.ComponentRegistry<com.yahoo.processing.rendering.Renderer> renderers, Executor executor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    newExecution(com.yahoo.component.chain.Chain<? extends Searcher> searchChain)
    Creates a new execution starting at a search chain.
    newExecution(String searchChainId)
    Creates a new execution starting at a search chain.
    Returns the renderers known to this
     
    Returns the search chain registry used by this

    Methods inherited from class com.yahoo.component.AbstractComponent

    clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ExecutionFactory

      @Inject public ExecutionFactory(com.yahoo.container.core.ChainsConfig chainsConfig, IndexInfoConfig indexInfo, SchemaInfoConfig schemaInfo, com.yahoo.container.QrSearchersConfig clusters, com.yahoo.component.provider.ComponentRegistry<Searcher> searchers, com.yahoo.vespa.configdefinition.SpecialtokensConfig specialTokens, com.yahoo.language.Linguistics linguistics, com.yahoo.component.provider.ComponentRegistry<com.yahoo.processing.rendering.Renderer> renderers, Executor executor)
    • ExecutionFactory

      public ExecutionFactory(com.yahoo.container.core.ChainsConfig chainsConfig, IndexInfoConfig indexInfo, SchemaInfo schemaInfo, com.yahoo.container.QrSearchersConfig clusters, com.yahoo.component.provider.ComponentRegistry<Searcher> searchers, com.yahoo.vespa.configdefinition.SpecialtokensConfig specialTokens, com.yahoo.language.Linguistics linguistics, com.yahoo.component.provider.ComponentRegistry<com.yahoo.processing.rendering.Renderer> renderers, Executor executor)
  • Method Details

    • newExecution

      public Execution newExecution(com.yahoo.component.chain.Chain<? extends Searcher> searchChain)
      Creates a new execution starting at a search chain. An execution instance should be used once to execute a (tree of) search chains.
    • newExecution

      public Execution newExecution(String searchChainId)
      Creates a new execution starting at a search chain. An execution instance should be used once to execute a (tree of) search chains.
    • searchChainRegistry

      public SearchChainRegistry searchChainRegistry()
      Returns the search chain registry used by this
    • rendererRegistry

      public RendererRegistry rendererRegistry()
      Returns the renderers known to this
    • schemaInfo

      public SchemaInfo schemaInfo()
    • deconstruct

      public void deconstruct()
      Specified by:
      deconstruct in interface com.yahoo.component.Deconstructable
      Overrides:
      deconstruct in class com.yahoo.component.AbstractComponent
    • empty

      public static ExecutionFactory empty()