Beispiel #1
0
    @Override
    public void examine(SkipScanFilter skipper) {
      KeyValue kv = KeyValue.createFirstOnRow(rowkey);
      skipper.reset();
      assertFalse(skipper.filterAllRemaining());
      assertFalse(skipper.filterRowKey(kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()));

      assertEquals(kv.toString(), ReturnCode.INCLUDE, skipper.filterKeyValue(kv));
    }
Beispiel #2
0
 @Override
 public void examine(SkipScanFilter skipper) {
   KeyValue kv = KeyValue.createFirstOnRow(rowkey);
   skipper.reset();
   assertFalse(skipper.filterAllRemaining());
   assertEquals(ReturnCode.NEXT_ROW, skipper.filterKeyValue(kv));
   skipper.reset();
   assertTrue(skipper.filterAllRemaining());
 }
Beispiel #3
0
    @Override
    public void examine(SkipScanFilter skipper) {
      KeyValue kv = KeyValue.createFirstOnRow(rowkey);
      skipper.reset();
      assertFalse(skipper.filterAllRemaining());
      assertFalse(skipper.filterRowKey(kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()));

      assertEquals(ReturnCode.SEEK_NEXT_USING_HINT, skipper.filterKeyValue(kv));
      assertEquals(KeyValue.createFirstOnRow(hint), skipper.getNextKeyHint(kv));
    }