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) abstract void
abstract void
deriveFromSchemas
(DeployState deployState) Must be called after cluster is built, to derive schema configs.final int
abstract void
getConfig
(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) abstract void
getConfig
(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) abstract List<DocumentDatabase>
Returns the document databases contained in this clusterReturns a list of the document type names used in this search clusterprotected abstract SearchCluster.IndexingMode
final String
final Double
abstract int
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.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
Methods inherited from interface com.yahoo.prelude.fastsearch.DocumentdbInfoConfig.Producer
getConfig
Methods inherited from interface com.yahoo.vespa.configdefinition.IlscriptsConfig.Producer
getConfig
Methods inherited from interface com.yahoo.search.config.IndexInfoConfig.Producer
getConfig
Methods inherited from interface com.yahoo.search.config.SchemaInfoConfig.Producer
getConfig
-
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. -
getDocumentDbs
Returns the document databases contained in this cluster -
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() -
getConfig
public abstract void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder) -
getConfig
public abstract void getConfig(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder) -
toString
-