Class ExecutionFactory

  • All Implemented Interfaces:
    com.yahoo.component.Component, java.lang.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, com.yahoo.search.config.IndexInfoConfig indexInfo, 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)  
    • Constructor Detail

      • ExecutionFactory

        public ExecutionFactory​(com.yahoo.container.core.ChainsConfig chainsConfig,
                                com.yahoo.search.config.IndexInfoConfig indexInfo,
                                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)
    • Method Detail

      • 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​(java.lang.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
      • deconstruct

        public void deconstruct()
        Overrides:
        deconstruct in class com.yahoo.component.AbstractComponent