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 META after restore.


Constructor Summary
RestoreSnapshotHelper.RestoreMetaChanges()
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreSnapshotHelper.RestoreMetaChanges

public RestoreSnapshotHelper.RestoreMetaChanges()
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 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


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.