@Override public synchronized void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); seekCounter.incrementAndGet(); readCounter.addAndGet(numRead); numRead = 0; }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { getSource().seek(range, columnFamilies, inclusive); seenSeek = true; }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); consume(); }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); load(); }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); findTop(); }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); next(); }
@Override public synchronized void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { source.seek(range, columnFamilies, inclusive); findTop(); }
private void _switchNow() throws IOException { if (onlySwitchAfterRow) throw new IllegalStateException("Can only switch on row boundries"); if (switchSource()) { if (key != null) { iter.seek(new Range(key, true, range.getEndKey(), range.isEndKeyInclusive()), columnFamilies, inclusive); } } }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { clear(); if (fence != null) { range = fence.clip(range, true); if (range == null) return; } for (SortedKeyValueIterator<Key,Value> skvi : iters) { skvi.seek(range, columnFamilies, inclusive); addSource(skvi); } }
private void reseek(Key key) throws IOException { if (range.afterEndKey(key)) { range = new Range(range.getEndKey(), true, range.getEndKey(), range.isEndKeyInclusive()); source.seek(range, colFamSet, inclusive); } else { range = new Range(key, true, range.getEndKey(), range.isEndKeyInclusive()); source.seek(range, colFamSet, inclusive); } }
private void reseek(Key key) throws IOException { if (range.afterEndKey(key)) { range = new Range(range.getEndKey(), true, range.getEndKey(), range.isEndKeyInclusive()); source.seek(range, columnFamilies, inclusive); } else { range = new Range(key, true, range.getEndKey(), range.isEndKeyInclusive()); source.seek(range, columnFamilies, inclusive); } }
protected void reseek(Key key) throws IOException { if (key == null) return; if (range.afterEndKey(key)) { range = new Range(range.getEndKey(), true, range.getEndKey(), range.isEndKeyInclusive()); getSource().seek(range, columnFamilies, inclusive); } else { range = new Range(key, true, range.getEndKey(), range.isEndKeyInclusive()); getSource().seek(range, columnFamilies, inclusive); } }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { Range seekRange = IteratorUtil.maximizeStartKeyTimeStamp(range); seekRange = IteratorUtil.minimizeEndKeyTimeStamp(seekRange); source.seek(seekRange, columnFamilies, inclusive); this.range = range; while (hasTop() && range.beforeStartKey(getTopKey())) { next(); } }
@Override public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException { reader.seek(range, columnFamilies, inclusive); this.range = range; hasTop = reader.hasTop() && !range.afterEndKey(reader.getTopKey()); while (hasTop() && range.beforeStartKey(getTopKey())) { next(); } }
@Override public IteratorTestOutput test(IteratorTestInput testInput) { final SortedKeyValueIterator<Key,Value> skvi = IteratorTestUtil.instantiateIterator(testInput); final SortedKeyValueIterator<Key,Value> source = IteratorTestUtil.createSource(testInput); try { skvi.init(source, testInput.getIteratorOptions(), new SimpleIteratorEnvironment()); skvi.seek(testInput.getRange(), testInput.getFamilies(), testInput.isInclusive()); return new IteratorTestOutput(consume(skvi)); } catch (IOException e) { return new IteratorTestOutput(e); } }
@Override public IteratorTestOutput test(IteratorTestInput testInput) { final SortedKeyValueIterator<Key,Value> skvi = IteratorTestUtil.instantiateIterator(testInput); final SortedKeyValueIterator<Key,Value> source = IteratorTestUtil.createSource(testInput); try { skvi.init(source, testInput.getIteratorOptions(), new SimpleIteratorEnvironment()); skvi.seek(testInput.getRange(), testInput.getFamilies(), testInput.isInclusive()); return new IteratorTestOutput(consume(skvi, testInput)); } catch (IOException e) { return new IteratorTestOutput(e); } }
@Override public IteratorTestOutput test(IteratorTestInput testInput) { final SortedKeyValueIterator<Key,Value> skvi = IteratorTestUtil.instantiateIterator(testInput); final SortedKeyValueIterator<Key,Value> source = IteratorTestUtil.createSource(testInput); try { skvi.init(source, testInput.getIteratorOptions(), new SimpleIteratorEnvironment()); SortedKeyValueIterator<Key,Value> copy = skvi.deepCopy(new SimpleIteratorEnvironment()); copy.seek(testInput.getRange(), testInput.getFamilies(), testInput.isInclusive()); return new IteratorTestOutput(consume(copy)); } catch (IOException e) { return new IteratorTestOutput(e); } }
@Override public IteratorTestOutput test(IteratorTestInput testInput) { final SortedKeyValueIterator<Key,Value> skvi = IteratorTestUtil.instantiateIterator(testInput); final SortedKeyValueIterator<Key,Value> source = IteratorTestUtil.createSource(testInput); try { skvi.init(source, testInput.getIteratorOptions(), new SimpleIteratorEnvironment()); YieldCallback<Key> yield = new YieldCallback<>(); skvi.enableYielding(yield); skvi.seek(testInput.getRange(), testInput.getFamilies(), testInput.isInclusive()); return new IteratorTestOutput(consume(testInput, skvi, yield)); } catch (IOException e) { return new IteratorTestOutput(e); } }