コード例 #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));
    }
コード例 #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());
 }
コード例 #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));
    }