Class InstanceSelector.SelectionResult
- java.lang.Object
-
- org.apache.pinot.broker.routing.instanceselector.InstanceSelector.SelectionResult
-
- Enclosing interface:
- InstanceSelector
public static class InstanceSelector.SelectionResult extends Object
-
-
Method Summary
Modifier and Type Method Description intgetNumPrunedSegments()Returns the number of segments pruned by the brokerMap<String,String>getSegmentToInstanceMap()Returns the map from segment to selected server instance hosting the segment.List<String>getUnavailableSegments()Returns the unavailable segments (no enabled instance or all enabled instances are in ERROR state).voidsetNumPrunedSegments(int numPrunedSegments)Sets the number of segments pruned by the broker
-
-
-
Method Detail
-
getSegmentToInstanceMap
public Map<String,String> getSegmentToInstanceMap()
Returns the map from segment to selected server instance hosting the segment.
-
getUnavailableSegments
public List<String> getUnavailableSegments()
Returns the unavailable segments (no enabled instance or all enabled instances are in ERROR state).
-
getNumPrunedSegments
public int getNumPrunedSegments()
Returns the number of segments pruned by the broker
-
setNumPrunedSegments
public void setNumPrunedSegments(int numPrunedSegments)
Sets the number of segments pruned by the broker
-
-