Package org.apache.hadoop.hbase.snapshot
Class SnapshotTestingUtils.SnapshotMock
java.lang.Object
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock
- Direct Known Subclasses:
MobSnapshotTestingUtils.SnapshotMock
- Enclosing class:
- SnapshotTestingUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate final org.apache.hadoop.fs.FileSystemprivate final org.apache.hadoop.fs.Pathprotected static final Stringstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotMock(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.client.TableDescriptorcreateSnapshot(String snapshotName, String tableName, int version) createSnapshot(String snapshotName, String tableName, int numRegions, int version) createSnapshot(String snapshotName, String tableName, int numRegions, int version, long ttl) createSnapshotV1(String snapshotName, String tableName) createSnapshotV1(String snapshotName, String tableName, int numRegions) createSnapshotV2(String snapshotName, String tableName) createSnapshotV2(String snapshotName, String tableName, int numRegions) createSnapshotV2(String snapshotName, String tableName, int numRegions, long ttl) private org.apache.hadoop.fs.PathcreateStoreFile(org.apache.hadoop.fs.Path storeFile) createTable(org.apache.hadoop.hbase.client.TableDescriptor htd, int nregions)
-
Field Details
-
TEST_FAMILY
- See Also:
-
TEST_NUM_REGIONS
- See Also:
-
conf
-
fs
-
rootDir
-
-
Constructor Details
-
SnapshotMock
public SnapshotMock(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir)
-
-
Method Details
-
createSnapshotV1
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV1(String snapshotName, String tableName) throws IOException - Throws:
IOException
-
createSnapshotV1
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV1(String snapshotName, String tableName, int numRegions) throws IOException - Throws:
IOException
-
createSnapshotV2
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV2(String snapshotName, String tableName) throws IOException - Throws:
IOException
-
createSnapshotV2
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV2(String snapshotName, String tableName, int numRegions) throws IOException - Throws:
IOException
-
createSnapshotV2
public SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshotV2(String snapshotName, String tableName, int numRegions, long ttl) throws IOException - Throws:
IOException
-
createSnapshot
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshot(String snapshotName, String tableName, int version) throws IOException - Throws:
IOException
-
createSnapshot
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshot(String snapshotName, String tableName, int numRegions, int version) throws IOException - Throws:
IOException
-
createSnapshot
private SnapshotTestingUtils.SnapshotMock.SnapshotBuilder createSnapshot(String snapshotName, String tableName, int numRegions, int version, long ttl) throws IOException - Throws:
IOException
-
createHtd
-
createTable
private SnapshotTestingUtils.SnapshotMock.RegionData[] createTable(org.apache.hadoop.hbase.client.TableDescriptor htd, int nregions) throws IOException - Throws:
IOException
-
createStoreFile
private org.apache.hadoop.fs.Path createStoreFile(org.apache.hadoop.fs.Path storeFile) throws IOException - Throws:
IOException
-