Package org.apache.hadoop.hbase.snapshot
Class TestExportSnapshotHelpers
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestExportSnapshotHelpers
Test Export Snapshot Tool helpers
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Verfy the result of getBalanceSplits() method.private void
verifyBalanceSplit
(List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo, Long>> split, String[] expected, long expectedSize)
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestExportSnapshotHelpers
public TestExportSnapshotHelpers()
-
-
Method Details
-
testBalanceSplit
Verfy the result of getBalanceSplits() method. The result are groups of files, used as input list for the "export" mappers. All the groups should have similar amount of data. The input list is a pair of file path and length. The getBalanceSplits() function sort it by length, and assign to each group a file, going back and forth through the groups.- Throws:
Exception
-
verifyBalanceSplit
private void verifyBalanceSplit(List<org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo, Long>> split, String[] expected, long expectedSize)
-