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
,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
ConstructorDescriptionExecutionFactory
(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 TypeMethodDescriptionvoid
static ExecutionFactory
empty()
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 thisReturns the search chain registry used by thisMethods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
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
Creates a new execution starting at a search chain. An execution instance should be used once to execute a (tree of) search chains. -
newExecution
Creates a new execution starting at a search chain. An execution instance should be used once to execute a (tree of) search chains. -
searchChainRegistry
Returns the search chain registry used by this -
rendererRegistry
Returns the renderers known to this -
schemaInfo
-
deconstruct
public void deconstruct()- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-
empty
-