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