@InterfaceAudience.Private public final class SnapshotManifest extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DATA_MANIFEST_NAME |
static String |
SNAPSHOT_MANIFEST_SIZE_LIMIT_CONF_KEY |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addMobRegion(RegionInfo regionInfo) |
protected void |
addMobRegion(RegionInfo regionInfo,
org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) |
void |
addRegion(HRegion region)
Creates a 'manifest' for the specified region, by reading directly from the HRegion object.
|
protected void |
addRegion(HRegion region,
org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) |
void |
addRegion(org.apache.hadoop.fs.Path tableDir,
RegionInfo regionInfo)
Creates a 'manifest' for the specified region, by reading directly from the disk.
|
protected void |
addRegion(org.apache.hadoop.fs.Path tableDir,
RegionInfo regionInfo,
org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) |
void |
addTableDescriptor(TableDescriptor htd)
Add the table descriptor to the snapshot manifest
|
void |
consolidate() |
static SnapshotManifest |
create(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path workingDir,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc,
ForeignExceptionSnare monitor)
Return a SnapshotManifest instance, used for writing a snapshot.
|
static ThreadPoolExecutor |
createExecutor(org.apache.hadoop.conf.Configuration conf,
String name) |
List<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> |
getRegionManifests()
Get all the Region Manifest from the snapshot
|
Map<String,org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> |
getRegionManifestsMap()
Get all the Region Manifest from the snapshot.
|
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription |
getSnapshotDescription()
Get the SnapshotDescription
|
org.apache.hadoop.fs.Path |
getSnapshotDir()
Get the current snapshot working dir
|
TableDescriptor |
getTableDescriptor()
Get the table descriptor from the Snapshot
|
static SnapshotManifest |
open(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path workingDir,
org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc)
Return a SnapshotManifest instance with the information already loaded in-memory.
|
public static final String SNAPSHOT_MANIFEST_SIZE_LIMIT_CONF_KEY
public static SnapshotManifest create(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path workingDir, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc, ForeignExceptionSnare monitor)
public static SnapshotManifest open(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path workingDir, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription desc) throws IOException
IOExceptionpublic void addTableDescriptor(TableDescriptor htd) throws IOException
IOExceptionpublic void addMobRegion(RegionInfo regionInfo) throws IOException
IOExceptionprotected void addMobRegion(RegionInfo regionInfo, org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) throws IOException
IOExceptionpublic void addRegion(HRegion region) throws IOException
IOExceptionprotected void addRegion(HRegion region, org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor) throws IOException
IOExceptionpublic void addRegion(org.apache.hadoop.fs.Path tableDir,
RegionInfo regionInfo)
throws IOException
IOExceptionprotected void addRegion(org.apache.hadoop.fs.Path tableDir,
RegionInfo regionInfo,
org.apache.hadoop.hbase.snapshot.SnapshotManifest.RegionVisitor visitor)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getSnapshotDir()
public org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription getSnapshotDescription()
public TableDescriptor getTableDescriptor()
public List<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifests()
public Map<String,org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest> getRegionManifestsMap()
public void consolidate()
throws IOException
IOExceptionpublic static ThreadPoolExecutor createExecutor(org.apache.hadoop.conf.Configuration conf, String name)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.