Package com.yahoo.vespa.model.search
Class SearchCluster
java.lang.Object
com.yahoo.config.model.producer.AbstractConfigProducer<SearchCluster>
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.search.config.SchemaInfoConfig.Producer
,com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
,ConfigProducer
,Serializable
- Direct Known Subclasses:
IndexedSearchCluster
,StreamingSearchCluster
public abstract class SearchCluster
extends AbstractConfigProducer<SearchCluster>
implements com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer, com.yahoo.search.config.IndexInfoConfig.Producer, com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer, com.yahoo.search.config.SchemaInfoConfig.Producer
Represents a search cluster.
- Author:
- arnej27959
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
Constructor Summary
ConstructorDescriptionSearchCluster
(AbstractConfigProducer<?> parent, String clusterName, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SchemaInfo schema) protected void
addRankProfilesConfig
(String schemaName, com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Documentdb.Builder docDbBuilder) 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
abstract void
deriveFromSchemas
(DeployState deployState) Must be called after cluster is built, to derive schema configs.final int
abstract void
getConfig
(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder) void
getConfig
(com.yahoo.search.config.IndexInfoConfig.Builder builder) void
getConfig
(com.yahoo.search.config.SchemaInfoConfig.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) Returns a list of the document type names used in this search clusterprotected abstract SearchCluster.IndexingMode
final String
final Double
abstract int
abstract DerivedConfiguration
final Double
final boolean
schemas()
Returns the schemas that should be active in this cluster.final void
setClusterIndex
(int index) final void
final void
setVisibilityDelay
(double delay) 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
-
Constructor Details
-
SearchCluster
-
-
Method Details
-
add
-
schemas
Returns the schemas that should be active in this cluster. Note: These are added during processing. -
deriveFromSchemas
Must be called after cluster is built, to derive schema configs. Derives the schemas from the application package. Also stores the document names contained in the schemas. -
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(String schemaName, com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Documentdb.Builder docDbBuilder) -
getDocumentNames
Returns a list of the document type names used in this search cluster -
getClusterName
-
getIndexingModeName
-
isStreaming
public final boolean isStreaming() -
setQueryTimeout
-
setVisibilityDelay
public final void setVisibilityDelay(double delay) -
getIndexingMode
-
getVisibilityDelay
-
getQueryTimeout
-
getRowBits
public abstract int getRowBits() -
setClusterIndex
public final void setClusterIndex(int index) -
getClusterIndex
public final int getClusterIndex() -
defaultDocumentsConfig
public abstract void defaultDocumentsConfig() -
getSchemaConfig
-
getConfig
public void getConfig(com.yahoo.search.config.IndexInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.search.config.IndexInfoConfig.Producer
-
getConfig
public void getConfig(com.yahoo.search.config.SchemaInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.search.config.SchemaInfoConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.configdefinition.IlscriptsConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) -
getConfig
public void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) -
getConfig
public abstract void getConfig(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
-
toString
-