public static class RestoreSnapshotHelper.RestoreMetaChanges extends Object
Modifier and Type | Field and Description |
---|---|
private TableDescriptor |
htd |
private Map<String,Pair<String,String>> |
parentsMap |
private List<RegionInfo> |
regionsToAdd |
private List<RegionInfo> |
regionsToRemove |
private List<RegionInfo> |
regionsToRestore |
Constructor and Description |
---|
RestoreMetaChanges(TableDescriptor htd,
Map<String,Pair<String,String>> parentsMap) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addRegionToRemove(RegionInfo hri) |
(package private) void |
addRegionToRestore(RegionInfo hri) |
Map<String,Pair<String,String>> |
getParentToChildrenPairMap()
Returns the map of parent-children_pair.
|
List<RegionInfo> |
getRegionsToAdd()
Returns the list of new regions added during the on-disk restore.
|
List<RegionInfo> |
getRegionsToRemove()
Returns the list of regions removed during the on-disk restore.
|
List<RegionInfo> |
getRegionsToRestore()
Returns the list of 'restored regions' during the on-disk restore.
|
TableDescriptor |
getTableDescriptor() |
boolean |
hasRegionsToAdd()
Returns true if there're new regions
|
boolean |
hasRegionsToRemove()
Returns true if there're regions to remove
|
boolean |
hasRegionsToRestore()
Returns true if there're regions to restore
|
(package private) void |
setNewRegions(RegionInfo[] hris) |
void |
updateMetaParentRegions(Connection connection,
List<RegionInfo> regionInfos) |
private final TableDescriptor htd
private List<RegionInfo> regionsToRestore
private List<RegionInfo> regionsToRemove
private List<RegionInfo> regionsToAdd
public RestoreMetaChanges(TableDescriptor htd, Map<String,Pair<String,String>> parentsMap)
public TableDescriptor getTableDescriptor()
public Map<String,Pair<String,String>> getParentToChildrenPairMap()
public boolean hasRegionsToAdd()
public List<RegionInfo> getRegionsToAdd()
public boolean hasRegionsToRestore()
public List<RegionInfo> getRegionsToRestore()
public boolean hasRegionsToRemove()
public List<RegionInfo> getRegionsToRemove()
void setNewRegions(RegionInfo[] hris)
void addRegionToRemove(RegionInfo hri)
void addRegionToRestore(RegionInfo hri)
public void updateMetaParentRegions(Connection connection, List<RegionInfo> regionInfos) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.