Package com.yahoo.vespa.model.search
Class SearchCluster
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
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
public abstract class SearchCluster
extends TreeConfigProducer<AnyConfigProducer>
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:
-
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SchemaInfo schema) void
deriveFromSchemas
(DeployState deployState) Must be called after cluster is built, to derive schema configs.void
fillDocumentDBConfig
(String documentType, com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder builder) final int
void
getConfig
(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder) void
getConfig
(com.yahoo.search.config.ClusterConfig.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.configdefinition.IlscriptsConfig.Builder builder) getConfigId
(String name) getDocumentDB
(String name) Returns the document databases contained in this clustercom.yahoo.container.QrSearchersConfig.Searchcluster.Builder
final Double
final Double
boolean
hasDocumentDB
(String name) final boolean
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.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validate
Methods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHosted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Constructor Details
-
SearchCluster
-
-
Method Details
-
getStorageRouteSpec
-
add
-
hasDocumentDB
-
getDocumentDB
-
getConfigId
-
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. -
getDocumentDbs
Returns the document databases contained in this cluster -
getClusterName
-
hasStreaming
public final boolean hasStreaming() -
hasIndexed
public final boolean hasIndexed() -
setQueryTimeout
-
setVisibilityDelay
public final void setVisibilityDelay(double delay) -
getVisibilityDelay
-
getQueryTimeout
-
setClusterIndex
public final void setClusterIndex(int index) -
getClusterIndex
public final int getClusterIndex() -
fillDocumentDBConfig
public void fillDocumentDBConfig(String documentType, com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder builder) -
getQrSearcherConfig
public com.yahoo.container.QrSearchersConfig.Searchcluster.Builder getQrSearcherConfig() -
getConfig
public void getConfig(com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
-
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.search.config.ClusterConfig.Builder builder) -
toString
-