org.apache.hadoop.hbase.snapshot
Class RestoreSnapshotHelper.RestoreMetaChanges

java.lang.Object
  extended by org.apache.hadoop.hbase.snapshot.RestoreSnapshotHelper.RestoreMetaChanges
Enclosing class:
RestoreSnapshotHelper

public static class RestoreSnapshotHelper.RestoreMetaChanges
extends Object

Describe the set of operations needed to update hbase:meta after restore.


Method Summary
 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.
 boolean hasRegionsToAdd()
           
 boolean hasRegionsToRemove()
           
 boolean hasRegionsToRestore()
           
 void updateMetaParentRegions(CatalogTracker catalogTracker, List<HRegionInfo> regionInfos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasRegionsToAdd

public boolean hasRegionsToAdd()
Returns:
true if there're new regions

getRegionsToAdd

public List<HRegionInfo> getRegionsToAdd()
Returns the list of new regions added during the on-disk restore. The caller is responsible to add the regions to META. e.g MetaEditor.addRegionsToMeta(...)

Returns:
the list of regions to add to META

hasRegionsToRestore

public boolean hasRegionsToRestore()
Returns:
true if there're regions to restore

getRegionsToRestore

public List<HRegionInfo> getRegionsToRestore()
Returns the list of 'restored regions' during the on-disk restore. The caller is responsible to add the regions to hbase:meta if not present.

Returns:
the list of regions restored

hasRegionsToRemove

public boolean hasRegionsToRemove()
Returns:
true if there're regions to remove

getRegionsToRemove

public List<HRegionInfo> getRegionsToRemove()
Returns the list of regions removed during the on-disk restore. The caller is responsible to remove the regions from META. e.g. MetaEditor.deleteRegions(...)

Returns:
the list of regions to remove from META

updateMetaParentRegions

public void updateMetaParentRegions(CatalogTracker catalogTracker,
                                    List<HRegionInfo> regionInfos)
                             throws IOException
Throws:
IOException


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.