Ejemplo n.º 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));
    }
Ejemplo n.º 2
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));
    }