public static class RestoreSnapshotHelper.RestoreMetaChanges extends Object
| Constructor and Description |
|---|
RestoreMetaChanges(TableDescriptor htd,
Map<String,Pair<String,String>> parentsMap) |
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
updateMetaParentRegions(Connection connection,
List<RegionInfo> regionInfos) |
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()
public void updateMetaParentRegions(Connection connection, List<RegionInfo> regionInfos) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.