Class IndexModel


  • public final class IndexModel
    extends java.lang.Object
    Parameter class used for construction IndexFacts.
    Author:
    Steinar Knutsen, bratseth
    • 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 parameter
        Use IndexModel as a pure wrapper for the parameters given.
      • IndexModel

        public IndexModel​(IndexInfoConfig indexInfo,
                          com.yahoo.container.QrSearchersConfig clusters)
      • IndexModel

        public IndexModel​(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