/** {@inheritDoc} */ @Override public synchronized boolean hasNextX() throws IgniteCheckedException { if (historicalIterator != null && historicalIterator.hasNextX()) return true; return current != null && current.getValue().hasNextX(); }
/** */ private synchronized void advance() throws IgniteCheckedException { if (fullIterators.isEmpty()) reachedEnd = true; while (!reachedEnd && (current == null || !current.getValue().hasNextX() || missingParts.contains(current.getKey()))) { if (current == null) current = fullIterators.firstEntry(); else { current = fullIterators.ceilingEntry(current.getKey() + 1); if (current == null) reachedEnd = true; } } assert current != null || reachedEnd; }
/** {@inheritDoc} */ @Override public synchronized CacheDataRow nextX() throws IgniteCheckedException { if (historicalIterator != null && historicalIterator.hasNextX()) return historicalIterator.nextX(); if (current == null || !current.getValue().hasNextX()) throw new NoSuchElementException(); CacheDataRow result = current.getValue().nextX(); assert result.partition() == current.getKey(); advance(); return result; }
@Override protected boolean onHasNext() throws IgniteCheckedException { if (cur != null) return true; if (locIter != null && locIter.hasNextX()) cur = locIter.nextX(); return cur != null || (cur = convert(fut.next())) != null; }
/** {@inheritDoc} */ @Override public synchronized boolean hasNextX() throws IgniteCheckedException { if (historicalIterator != null && historicalIterator.hasNextX()) return true; return current != null && current.getValue().hasNextX(); }
/** */ private synchronized void advance() throws IgniteCheckedException { if (fullIterators.isEmpty()) reachedEnd = true; while (!reachedEnd && (current == null || !current.getValue().hasNextX() || missingParts.contains(current.getKey()))) { if (current == null) current = fullIterators.firstEntry(); else { current = fullIterators.ceilingEntry(current.getKey() + 1); if (current == null) reachedEnd = true; } } assert current != null || reachedEnd; }
/** {@inheritDoc} */ @Override public synchronized CacheDataRow nextX() throws IgniteCheckedException { if (historicalIterator != null && historicalIterator.hasNextX()) return historicalIterator.nextX(); if (current == null || !current.getValue().hasNextX()) throw new NoSuchElementException(); CacheDataRow result = current.getValue().nextX(); assert result.partition() == current.getKey(); advance(); return result; }
@Override protected boolean onHasNext() throws IgniteCheckedException { if (cur != null) return true; if (locIter != null && locIter.hasNextX()) cur = locIter.nextX(); return cur != null || (cur = convert(fut.next())) != null; }