Class 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 definition
      IndexModel​(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)
      Create an index model.
      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
    • 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)
        Create an index model.
      • 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 parameter
        Use 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