Package com.yahoo.prelude
Class IndexModel
- java.lang.Object
-
- com.yahoo.prelude.IndexModel
-
public final class IndexModel extends java.lang.Object
Parameter class used for construction IndexFacts.- Author:
- Steinar Knutsen, bratseth
-
-
Constructor Summary
Constructors Constructor Description IndexModel(SearchDefinition searchDefinition)
Create an index model for a single search definitionIndexModel(com.yahoo.search.config.IndexInfoConfig indexInfo, com.yahoo.container.QrSearchersConfig clusters)
IndexModel(com.yahoo.search.config.IndexInfoConfig indexInfo, java.util.Map<java.lang.String,java.util.List<java.lang.String>> clusters)
IndexModel(java.util.Map<java.lang.String,java.util.List<java.lang.String>> masterClusters, java.util.Collection<SearchDefinition> searchDefinitions)
IndexModel(java.util.Map<java.lang.String,java.util.List<java.lang.String>> masterClusters, java.util.Map<java.lang.String,SearchDefinition> searchDefinitions, SearchDefinition unionSearchDefinition)
Deprecated.use the constructor without the third parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getMasterClusters()
java.util.Map<java.lang.String,SearchDefinition>
getSearchDefinitions()
SearchDefinition
getUnionSearchDefinition()
Deprecated.do not use
-
-
-
Constructor Detail
-
IndexModel
public IndexModel(SearchDefinition searchDefinition)
Create an index model for a single search definition
-
IndexModel
public IndexModel(java.util.Map<java.lang.String,java.util.List<java.lang.String>> masterClusters, java.util.Collection<SearchDefinition> searchDefinitions)
-
IndexModel
@Deprecated public IndexModel(java.util.Map<java.lang.String,java.util.List<java.lang.String>> masterClusters, java.util.Map<java.lang.String,SearchDefinition> searchDefinitions, SearchDefinition unionSearchDefinition)
Deprecated.use the constructor without the third parameterUse IndexModel as a pure wrapper for the parameters given.
-
IndexModel
public IndexModel(com.yahoo.search.config.IndexInfoConfig indexInfo, com.yahoo.container.QrSearchersConfig clusters)
-
IndexModel
public IndexModel(com.yahoo.search.config.IndexInfoConfig indexInfo, java.util.Map<java.lang.String,java.util.List<java.lang.String>> clusters)
-
-
Method Detail
-
getMasterClusters
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMasterClusters()
-
getSearchDefinitions
public java.util.Map<java.lang.String,SearchDefinition> getSearchDefinitions()
-
getUnionSearchDefinition
@Deprecated public SearchDefinition getUnionSearchDefinition()
Deprecated.do not use
-
-