Package com.yahoo.vespa.model.search
Class SearchCluster
java.lang.Object
com.yahoo.config.model.producer.AbstractConfigProducer<AbstractSearchCluster>
com.yahoo.vespa.model.search.AbstractSearchCluster
com.yahoo.vespa.model.search.SearchCluster
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
,com.yahoo.search.config.IndexInfoConfig.Producer
,com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
,ConfigProducer
,Serializable
- Direct Known Subclasses:
IndexedSearchCluster
,StreamingSearchCluster
public abstract class SearchCluster
extends AbstractSearchCluster
implements com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
Represents a search cluster.
- Author:
- arnej27959
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.vespa.model.search.AbstractSearchCluster
AbstractSearchCluster.IndexingMode, AbstractSearchCluster.SchemaSpec
-
Field Summary
Fields inherited from class com.yahoo.vespa.model.search.AbstractSearchCluster
clusterName, index
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
Constructor Summary
ModifierConstructorDescriptionprotected
SearchCluster
(AbstractConfigProducer<SearchCluster> parent, String clusterName, int index) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRankProfilesConfig
(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Documentdb.Builder docDbBuilder, com.yahoo.vespa.config.search.RankProfilesConfig rankProfilesCfg) protected void
convertSummaryConfig
(com.yahoo.vespa.config.search.SummaryConfig.Producer summaryConfigProducer, com.yahoo.vespa.config.search.SummarymapConfig.Producer summarymapConfigProducer, com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Documentdb.Builder docDb) Converts summary and summary map config to the appropriate information in documentdbabstract void
protected abstract void
deriveAllSchemas
(List<AbstractSearchCluster.SchemaSpec> localSearches, DeployState deployState) void
deriveSchemas
(DeployState deployState) Must be called after cluster is built, to derive SD configs Derives the search definitions from the application package..void
getConfig
(com.yahoo.search.config.IndexInfoConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) void
getConfig
(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) void
getConfig
(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) abstract DerivedConfiguration
Methods inherited from class com.yahoo.vespa.model.search.AbstractSearchCluster
addDocumentNames, getClusterIndex, getClusterName, getConfig, getDocumentNames, getIndexingMode, getIndexingModeName, getLocalSDS, getQueryTimeout, getRowBits, getVisibilityDelay, isStreaming, setClusterIndex, setQueryTimeout, setVisibilityDelay, toString
Methods inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, removeChild, setParent, setUserConfigs, stateIsHosted, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
getConfig
-
Constructor Details
-
SearchCluster
protected SearchCluster(AbstractConfigProducer<SearchCluster> parent, String clusterName, int index)
-
-
Method Details
-
deriveSchemas
Must be called after cluster is built, to derive SD configs Derives the search definitions from the application package.. Also stores the document names contained in the search definitions. -
getConfig
public void getConfig(com.yahoo.search.config.IndexInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.search.config.IndexInfoConfig.Producer
- Specified by:
getConfig
in classAbstractSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
- Specified by:
getConfig
in classAbstractSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) - Specified by:
getConfig
in classAbstractSearchCluster
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) - Specified by:
getConfig
in classAbstractSearchCluster
-
convertSummaryConfig
protected void convertSummaryConfig(com.yahoo.vespa.config.search.SummaryConfig.Producer summaryConfigProducer, com.yahoo.vespa.config.search.SummarymapConfig.Producer summarymapConfigProducer, com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Documentdb.Builder docDb) Converts summary and summary map config to the appropriate information in documentdb- Parameters:
summaryConfigProducer
- the summary configsummarymapConfigProducer
- the summary map config, or null if none is availabledocDb
- the target document dm config
-
addRankProfilesConfig
protected void addRankProfilesConfig(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Documentdb.Builder docDbBuilder, com.yahoo.vespa.config.search.RankProfilesConfig rankProfilesCfg) -
deriveAllSchemas
protected abstract void deriveAllSchemas(List<AbstractSearchCluster.SchemaSpec> localSearches, DeployState deployState) -
defaultDocumentsConfig
public abstract void defaultDocumentsConfig() -
getSdConfig
-