@Override protected void onClose() throws IgniteCheckedException { if (curIt != null) curIt.close(); } };
/** {@inheritDoc} */ @Override public void close() throws IgniteCheckedException { ((GridCloseableIterator)it).close(); } }
@Override protected void onClose() throws IgniteCheckedException { if (curIt != null) curIt.close(); } };
/** * Closes iterator. * * @throws IgniteCheckedException If failed. */ public void close() throws IgniteCheckedException { it.close(); } }
/** {@inheritDoc} */ @Override protected void onClose() throws IgniteCheckedException { if (curIt != null) curIt.close(); } }
/** {@inheritDoc} */ @Override public synchronized void close() throws IgniteCheckedException { if (historicalIterator != null) historicalIterator.close(); if (fullIterators != null) { for (GridCloseableIterator<CacheDataRow> iter : fullIterators.values()) iter.close(); } closed = true; }
@Override protected void onClose() throws IgniteCheckedException { super.onClose(); if (locIter != null) locIter.close(); if (fut != null) fut.cancel(); } };
private void advance() throws IgniteCheckedException { curIt = null; while (idx < segs.length) { curIt = segs[idx++].iterator(c); if (curIt.hasNext()) return; else curIt.close(); } curIt = null; }
@Override protected void advance() throws IgniteCheckedException { curIt = null; while (p < parts) { curIt = mapFor(p++).iterator(); if (curIt.hasNext()) return; else curIt.close(); } curIt = null; } };
@Override protected void advance() throws IgniteCheckedException { curIt = null; while (p < parts) { curIt = mapFor(p++).iterator(c); if (curIt.hasNext()) return; else curIt.close(); } curIt = null; } };
/** {@inheritDoc} */ @Override public void close() throws IgniteCheckedException { if (isClosed()) return; try { it.close(); } finally { mvccTracker.onDone(); } }
private void advance() throws IgniteCheckedException { curIt = null; while (idx < segs.length) { curIt = segs[idx++].iterator(); if (curIt.hasNext()) return; else curIt.close(); } curIt = null; }
@Override protected T onNext() throws IgniteCheckedException { if (curIt == null) throw new NoSuchElementException(); T t = curIt.next(); if (!curIt.hasNext()) { curIt.close(); advance(); } return t; }
@Override protected IgniteBiTuple<byte[], byte[]> onNext() throws IgniteCheckedException { if (curIt == null) throw new NoSuchElementException(); IgniteBiTuple<byte[], byte[]> t = curIt.next(); if (!curIt.hasNext()) { curIt.close(); advance(); } return t; }
/** {@inheritDoc} */ @Override protected T onNext() throws IgniteCheckedException { if (curIt == null) throw new NoSuchElementException(); T t = curIt.next(); if (!curIt.hasNext()) { curIt.close(); advance(); } return t; }
/** {@inheritDoc} */ @Override protected void onClose() throws IgniteCheckedException { super.onClose(); T2<GridCloseableIterator<Object>, GridCacheQueryFutureAdapter> t = tuple; if (t != null && t.get1() != null) t.get1().close(); if (t != null && t.get2() != null) t.get2().cancel(); } }
@Override public void run() { try { startLatch.await(); while (run.get()) { GridCloseableIterator<IgniteBiTuple<byte[], byte[]>> it = map.iterator(); while (it.hasNext()) it.next(); it.close(); } } catch (IgniteCheckedException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); Thread.currentThread().interrupt(); } } }, 1);
assertNotNull(iter.next()); iter.close();
iter.close();
/** * Closes iterator. * * @throws IgniteCheckedException If failed. */ public void close() throws IgniteCheckedException { it.close(); } }