public static class SnapshotTestingUtils.SnapshotMock extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SnapshotTestingUtils.SnapshotMock.RegionData |
static class |
SnapshotTestingUtils.SnapshotMock.SnapshotBuilder |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.FileSystem |
fs |
private org.apache.hadoop.fs.Path |
rootDir |
protected static String |
TEST_FAMILY |
static int |
TEST_NUM_REGIONS |
Constructor and Description |
---|
SnapshotMock(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir) |
protected static final String TEST_FAMILY
public static final int TEST_NUM_REGIONS
private final org.apache.hadoop.conf.Configuration conf
private final org.apache.hadoop.fs.FileSystem fs
private final org.apache.hadoop.fs.Path rootDir
public SnapshotMock(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir)
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV1(String snapshotName, String tableName) throws IOException
IOException
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV1(String snapshotName, String tableName, int numRegions) throws IOException
IOException
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV2(String snapshotName, String tableName) throws IOException
IOException
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV2(String snapshotName, String tableName, int numRegions) throws IOException
IOException
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshot(String snapshotName, String tableName, int version) throws IOException
IOException
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshot(String snapshotName, String tableName, int numRegions, int version) throws IOException
IOException
private SnapshotTestingUtils.SnapshotMock.RegionData[] createTable(org.apache.hadoop.hbase.client.TableDescriptor htd, int nregions) throws IOException
IOException
private org.apache.hadoop.fs.Path createStoreFile(org.apache.hadoop.fs.Path storeFile) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.