private boolean seekToNextUnfilteredKeyValue() throws IOException { while (true) { KeyValue peeked = delegate.peek(); // no more key values, so we are done if (peeked == null) { return false; } // filter the peeked value to see if it should be served ReturnCode code = filter.filterKeyValue(peeked); switch (code) { // included, so we are done case INCLUDE: case INCLUDE_AND_NEXT_COL: return true; // not included, so we need to go to the next row case SKIP: case NEXT_COL: case NEXT_ROW: delegate.next(); break; // use a seek hint to find out where we should go case SEEK_NEXT_USING_HINT: delegate.seek(filter.getNextKeyHint(peeked)); } } }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { return filter.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }
@SuppressWarnings("deprecation") @Override public KeyValue getNextKeyHint(KeyValue currentKV) throws IOException { if (cellFilter != null) { return cellFilter.getNextKeyHint(currentKV); } return super.getNextKeyHint(currentKV); }