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
,StreamingSearchCluster
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:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SchemaInfo schema) void
add
(DocumentDatabase db) abstract void
deriveFromSchemas
(DeployState deployState) Must be called after cluster is built, to derive schema configs.protected void
fillDocumentDBConfig
(DocumentDatabase sdoc, com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder ddbB) 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.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 the document databases contained in this clusterprotected abstract SearchCluster.IndexingMode
final String
final Double
final Double
boolean
hasDocumentDB
(String name) 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
-
add
-
add
-
hasDocumentDB
-
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
-
getIndexingModeName
-
isStreaming
public final boolean isStreaming() -
setQueryTimeout
-
setVisibilityDelay
public final void setVisibilityDelay(double delay) -
getIndexingMode
-
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) -
fillDocumentDBConfig
protected void fillDocumentDBConfig(DocumentDatabase sdoc, com.yahoo.vespa.config.search.core.ProtonConfig.Documentdb.Builder ddbB) -
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.vespa.config.search.RankProfilesConfig.Builder builder) -
toString
-