@InterfaceAudience.Private public final class SnapshotRegionLocator extends Object implements RegionLocator
RegionLocator built using the most recent full backup's snapshot manifest for a given
table. Useful for aligning any subsequent incremental backups along the same splits as the full
backup| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotRegionLocator.SnapshotHRegionLocation |
LOCATOR_META_REPLICAS_MODE, LOCATOR_META_REPLICAS_MODE_LOADBALANCE_SELECTOR| Modifier and Type | Method and Description |
|---|---|
void |
clearRegionLocationCache() |
void |
close() |
static SnapshotRegionLocator |
create(org.apache.hadoop.conf.Configuration conf,
TableName table) |
List<HRegionLocation> |
getAllRegionLocations() |
TableName |
getName() |
HRegionLocation |
getRegionLocation(byte[] row,
int replicaId,
boolean reload) |
List<HRegionLocation> |
getRegionLocations(byte[] row,
boolean reload) |
static void |
setSnapshotManifestDir(org.apache.hadoop.conf.Configuration conf,
String dir,
TableName table) |
static boolean |
shouldUseSnapshotRegionLocator(org.apache.hadoop.conf.Configuration conf,
TableName table) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndKeys, getRegionLocation, getRegionLocation, getRegionLocation, getRegionLocations, getStartEndKeys, getStartKeyspublic static SnapshotRegionLocator create(org.apache.hadoop.conf.Configuration conf, TableName table) throws IOException
IOExceptionpublic HRegionLocation getRegionLocation(byte[] row, int replicaId, boolean reload) throws IOException
getRegionLocation in interface RegionLocatorIOExceptionpublic List<HRegionLocation> getRegionLocations(byte[] row, boolean reload) throws IOException
getRegionLocations in interface RegionLocatorIOExceptionpublic void clearRegionLocationCache()
clearRegionLocationCache in interface RegionLocatorpublic List<HRegionLocation> getAllRegionLocations() throws IOException
getAllRegionLocations in interface RegionLocatorIOExceptionpublic TableName getName()
getName in interface RegionLocatorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static boolean shouldUseSnapshotRegionLocator(org.apache.hadoop.conf.Configuration conf,
TableName table)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.