Package com.yahoo.search.searchchain
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
,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
-
-
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deconstruct()
static ExecutionFactory
empty()
Execution
newExecution(com.yahoo.component.chain.Chain<? extends Searcher> searchChain)
Creates a new execution starting at a search chain.Execution
newExecution(java.lang.String searchChainId)
Creates a new execution starting at a search chain.RendererRegistry
rendererRegistry()
Returns the renderers known to thisSearchChainRegistry
searchChainRegistry()
Returns the search chain registry used by this
-
-
-
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()
- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-
empty
public static ExecutionFactory empty()
-
-