@InterfaceAudience.Private public class FavoredNodesPlan extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FavoredNodesPlan.Position |
| Constructor and Description |
|---|
FavoredNodesPlan() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<String,List<ServerName>> |
getAssignmentMap()
Return the mapping between each region to its favored region server list.
|
List<ServerName> |
getFavoredNodes(RegionInfo region)
Returns the list of favored region server for this region based on the plan
|
static FavoredNodesPlan.Position |
getFavoredServerPosition(List<ServerName> favoredNodes,
ServerName server)
Return the position of the server in the favoredNodes list.
|
int |
hashCode() |
int |
size() |
void |
updateFavoredNodesMap(RegionInfo region,
List<ServerName> servers)
Update an assignment to the plan
|
public void updateFavoredNodesMap(RegionInfo region, List<ServerName> servers)
public List<ServerName> getFavoredNodes(RegionInfo region)
public static FavoredNodesPlan.Position getFavoredServerPosition(List<ServerName> favoredNodes, ServerName server)
public Map<String,List<ServerName>> getAssignmentMap()
public int size()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.