Class SearchGroupsImpl

java.lang.Object
com.yahoo.search.dispatch.searchcluster.SearchGroupsImpl
All Implemented Interfaces:
SearchGroups

public class SearchGroupsImpl extends Object implements SearchGroups
Author:
baldersheim
  • Constructor Details

    • SearchGroupsImpl

      public SearchGroupsImpl(Map<Integer,Group> groups, double minActiveDocsPercentage)
  • Method Details

    • get

      public Group get(int id)
      Specified by:
      get in interface SearchGroups
    • keys

      public Set<Integer> keys()
      Specified by:
      keys in interface SearchGroups
    • groups

      public Collection<Group> groups()
      Specified by:
      groups in interface SearchGroups
    • size

      public int size()
      Specified by:
      size in interface SearchGroups
    • isPartialGroupCoverageSufficient

      public boolean isPartialGroupCoverageSufficient(boolean currentIsGroupCoverageSufficient, Collection<Node> nodes)
      Specified by:
      isPartialGroupCoverageSufficient in interface SearchGroups
    • isGroupCoverageSufficient

      public boolean isGroupCoverageSufficient(boolean currentIsGroupCoverageSufficient, long groupDocumentCount, long medianDocumentCount, long maxDocumentCount)
    • medianDocumentCount

      public long medianDocumentCount()
    • maxDocumentCount

      public long maxDocumentCount()