Package com.yahoo.prelude
Class IndexModel
- java.lang.Object
-
- com.yahoo.prelude.IndexModel
-
public final class IndexModel extends 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(IndexInfoConfig indexInfo, com.yahoo.container.QrSearchersConfig clusters)
IndexModel(IndexInfoConfig indexInfo, Map<String,List<String>> clusters)
IndexModel(Map<String,List<String>> masterClusters, Collection<SearchDefinition> searchDefinitions)
IndexModel(Map<String,List<String>> masterClusters, Map<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 Map<String,List<String>>
getMasterClusters()
Map<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(Map<String,List<String>> masterClusters, Collection<SearchDefinition> searchDefinitions)
-
IndexModel
@Deprecated public IndexModel(Map<String,List<String>> masterClusters, Map<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(IndexInfoConfig indexInfo, com.yahoo.container.QrSearchersConfig clusters)
-
IndexModel
public IndexModel(IndexInfoConfig indexInfo, Map<String,List<String>> clusters)
-
-
Method Detail
-
getSearchDefinitions
public Map<String,SearchDefinition> getSearchDefinitions()
-
getUnionSearchDefinition
@Deprecated public SearchDefinition getUnionSearchDefinition()
Deprecated.do not use
-
-