public static class SnapshotTestingUtils.SnapshotMock.SnapshotBuilder extends Object
| Constructor and Description |
|---|
SnapshotBuilder(Configuration conf,
FileSystem fs,
Path rootDir,
HTableDescriptor htd,
HBaseProtos.SnapshotDescription desc,
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock.RegionData[] tableRegions) |
| Modifier and Type | Method and Description |
|---|---|
Path[] |
addRegion() |
Path[] |
addRegionV1() |
Path[] |
addRegionV2() |
Path |
commit() |
HBaseProtos.SnapshotDescription |
getSnapshotDescription() |
Path |
getSnapshotsDir() |
HTableDescriptor |
getTableDescriptor() |
public SnapshotBuilder(Configuration conf,
FileSystem fs,
Path rootDir,
HTableDescriptor htd,
HBaseProtos.SnapshotDescription desc,
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock.RegionData[] tableRegions)
throws IOException
IOExceptionpublic HTableDescriptor getTableDescriptor()
public HBaseProtos.SnapshotDescription getSnapshotDescription()
public Path getSnapshotsDir()
public Path[] addRegion()
throws IOException
IOExceptionpublic Path[] addRegionV1()
throws IOException
IOExceptionpublic Path[] addRegionV2()
throws IOException
IOExceptionpublic Path commit()
throws IOException
IOException