/** {@inheritDoc} */ @Override public void removeAll() throws IgniteCheckedException { assert ctx.isLocal(); // We do batch and recreate cursor because removing using a single cursor // will cause it to reinitialize on each merged page. List<K> keys = new ArrayList<>(Math.min(REMOVE_ALL_KEYS_BATCH, size())); do { Iterator<CacheDataRow> it = ctx.offheap().cacheIterator(ctx.cacheId(), true, true, null, null, null); while (it.hasNext() && keys.size() < REMOVE_ALL_KEYS_BATCH) keys.add((K)it.next().key()); removeAll(keys); keys.clear(); } while (!isEmpty()); }
assert locLsnr != null : "Local listener can't be null if notification for existing entries are enabled"; final Iterator<CacheDataRow> it = cctx.offheap().cacheIterator( cctx.cacheId(), true,
locPart = null; it = cctx.offheap().cacheIterator(cctx.cacheId(), true, backups, topVer, qry.mvccSnapshot(), qry.isDataPageScanEnabled());
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public void removeAll() throws IgniteCheckedException { assert ctx.isLocal(); // We do batch and recreate cursor because removing using a single cursor // will cause it to reinitialize on each merged page. List<K> keys = new ArrayList<>(Math.min(REMOVE_ALL_KEYS_BATCH, size())); do { for (Iterator<CacheDataRow> it = ctx.offheap().cacheIterator(ctx.cacheId(), true, true, null, null); it.hasNext() && keys.size() < REMOVE_ALL_KEYS_BATCH; ) keys.add((K)it.next().key()); removeAll(keys); keys.clear(); } while (!isEmpty()); }
assert locLsnr != null : "Local listener can't be null if notification for existing entries are enabled"; final Iterator<CacheDataRow> it = cctx.offheap().cacheIterator(cctx.cacheId(), true, true,
locPart = null; it = cctx.offheap().cacheIterator(cctx.cacheId(), true, backups, topVer, qry.mvccSnapshot());