Class TestCompactionScanQueryMatcher

java.lang.Object
org.apache.hadoop.hbase.regionserver.querymatcher.AbstractTestScanQueryMatcher
org.apache.hadoop.hbase.regionserver.querymatcher.TestCompactionScanQueryMatcher

@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests") public class TestCompactionScanQueryMatcher extends AbstractTestScanQueryMatcher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     

    Fields inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.AbstractTestScanQueryMatcher

    col1, col2, col3, col4, col5, conf, data, fam1, fam2, get, row1, row2, row3, rowComparator, scan, ttl
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    assertRetainDeletes(byte[] qualifier, org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected)
     
    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)
    Build cells from the given types with decrementing timestamps.
    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)
    Build cells from the given types with decrementing timestamps (same ts for adjacent family-level and column-level types at the same position).
    private void
    assertRetainDeletes(org.apache.hadoop.hbase.KeyValue.Type[] types, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected)
     
    private void
    testDropDeletes(byte[] from, byte[] to, byte[][] rows, org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode... expected)
     
    void
    Redundant column-level deletes with empty qualifier must not seek past a subsequent DeleteFamily.
    void
     
    void
    Test redundant delete marker handling with COMPACT_RETAIN_DELETES.

    Methods inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.AbstractTestScanQueryMatcher

    setUp

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
  • Constructor Details

  • Method Details

    • testMatch_PartialRangeDropDeletes

      @Test public void testMatch_PartialRangeDropDeletes() throws Exception
      Throws:
      Exception
    • testSkipsRedundantDeleteMarkers

      @Test public void testSkipsRedundantDeleteMarkers() throws IOException
      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