Class TestCompactionScanQueryMatcher
java.lang.Object
org.apache.hadoop.hbase.regionserver.querymatcher.AbstractTestScanQueryMatcher
org.apache.hadoop.hbase.regionserver.querymatcher.TestCompactionScanQueryMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertRetainDeletes(byte[] qualifier, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) private voidassertRetainDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells, byte[] qualifier, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) Build cells from the given types with decrementing timestamps.private voidassertRetainDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) Build cells from the given types with decrementing timestamps (same ts for adjacent family-level and column-level types at the same position).private voidassertRetainDeletes(org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) private voidtestDropDeletes(byte[] from, byte[] to, byte[][] rows, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) voidRedundant column-level deletes with empty qualifier must not seek past a subsequent DeleteFamily.voidvoidTest redundant delete marker handling with COMPACT_RETAIN_DELETES.Methods inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.AbstractTestScanQueryMatcher
setUp
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestCompactionScanQueryMatcher
public TestCompactionScanQueryMatcher()
-
-
Method Details
-
testMatch_PartialRangeDropDeletes
- Throws:
Exception
-
testSkipsRedundantDeleteMarkers
Test redundant delete marker handling with COMPACT_RETAIN_DELETES. Cells are auto-generated from the given types with decrementing timestamps.- Throws:
IOException
-
testEmptyQualifierDeleteDoesNotSkipDeleteFamily
Redundant column-level deletes with empty qualifier must not seek past a subsequent DeleteFamily. getKeyForNextColumn treats empty qualifier as "no column" and returns SEEK_NEXT_ROW, which would skip the DF and all remaining cells in the row.- Throws:
IOException
-
assertRetainDeletes
private void assertRetainDeletes(org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) throws IOException - Throws:
IOException
-
assertRetainDeletes
private void assertRetainDeletes(byte[] qualifier, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) throws IOException - Throws:
IOException
-
assertRetainDeletes
private void assertRetainDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) throws IOException Build cells from the given types with decrementing timestamps (same ts for adjacent family-level and column-level types at the same position). Family-level types (DeleteFamily, DeleteFamilyVersion) use empty qualifier; others use col1.- Throws:
IOException
-
assertRetainDeletes
private void assertRetainDeletes(org.apache.hadoop.hbase.KeepDeletedCells keepDeletedCells, byte[] qualifier, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) throws IOException Build cells from the given types with decrementing timestamps. If qualifier is null, family-level types use empty qualifier and others use col1. If qualifier is specified, all types use that qualifier.- Throws:
IOException
-
testDropDeletes
private void testDropDeletes(byte[] from, byte[] to, byte[][] rows, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected) throws IOException - Throws:
IOException
-