Class TestCompactionScanQueryMatcher

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

  • Field Details

  • Constructor Details

  • 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