Class SearchGroupsImpl
java.lang.Object
com.yahoo.search.dispatch.searchcluster.SearchGroupsImpl
- All Implemented Interfaces:
SearchGroups
- Author:
- bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionSearchGroupsImpl(AvailabilityPolicy availabilityPolicy, Map<Integer, Group> groups) -
Method Summary
Modifier and TypeMethodDescriptionget(int id) groups()booleanhasBetterCoverageThan(long groupDocumentCount, long documentCount) booleanisGroupCoverageSufficient(boolean currentIsGroupCoverageSufficient, long groupDocumentCount, long medianDocumentCount, long maxDocumentCount) booleanisPartialGroupCoverageSufficient(boolean currentIsGroupCoverageSufficient, Collection<Node> nodes) keys()longlongintsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.search.dispatch.searchcluster.SearchGroups
isEmpty, nodes
-
Constructor Details
-
SearchGroupsImpl
-
-
Method Details
-
get
- Specified by:
getin interfaceSearchGroups
-
keys
- Specified by:
keysin interfaceSearchGroups
-
groups
- Specified by:
groupsin interfaceSearchGroups
-
size
public int size()- Specified by:
sizein interfaceSearchGroups
-
isPartialGroupCoverageSufficient
public boolean isPartialGroupCoverageSufficient(boolean currentIsGroupCoverageSufficient, Collection<Node> nodes) - Specified by:
isPartialGroupCoverageSufficientin interfaceSearchGroups
-
isGroupCoverageSufficient
public boolean isGroupCoverageSufficient(boolean currentIsGroupCoverageSufficient, long groupDocumentCount, long medianDocumentCount, long maxDocumentCount) -
hasBetterCoverageThan
public boolean hasBetterCoverageThan(long groupDocumentCount, long documentCount) - Specified by:
hasBetterCoverageThanin interfaceSearchGroups
-
medianDocumentCount
public long medianDocumentCount() -
maxDocumentCount
public long maxDocumentCount()- Specified by:
maxDocumentCountin interfaceSearchGroups
-