/** * Checks if this transaction needs previous value for the given tx entry. Will use passed in map to store * required key or will create new map if passed in map is {@code null}. * * @param e TX entry. * @param map Map with needed preload keys. * @return Map if it was created. */ private Map<Integer, Collection<KeyCacheObject>> checkNeedRebalanceKeys( IgniteTxEntry e, Map<Integer, Collection<KeyCacheObject>> map ) { if (retVal || !F.isEmpty(e.entryProcessors()) || !F.isEmpty(e.filters()) || e.entryReadVersion() != null) { if (map == null) map = new HashMap<>(); Collection<KeyCacheObject> keys = map.get(e.cacheId()); if (keys == null) { keys = new ArrayList<>(); map.put(e.cacheId(), keys); } keys.add(e.key()); } return map; }
boolean pass = res.filterResult(i); tx.entry(cctx.txKey(k)).filters(pass ? CU.empty0() : CU.alwaysFalse0Arr());
boolean pass = res.filterResult(i); tx.entry(cctx.txKey(k)).filters(pass ? CU.empty0() : CU.alwaysFalse0Arr());
if (!F.isEmpty(txEntry.entryProcessors()) || !F.isEmpty(txEntry.filters())) txEntry.cached().unswap(false);
/** * Checks if this transaction needs previous value for the given tx entry. Will use passed in map to store * required key or will create new map if passed in map is {@code null}. * * @param e TX entry. * @param map Map with needed preload keys. * @return Map if it was created. */ private Map<Integer, Collection<KeyCacheObject>> checkNeedRebalanceKeys( IgniteTxEntry e, Map<Integer, Collection<KeyCacheObject>> map ) { if (retVal || !F.isEmpty(e.entryProcessors()) || !F.isEmpty(e.filters()) || e.entryReadVersion() != null) { if (map == null) map = new HashMap<>(); Collection<KeyCacheObject> keys = map.get(e.cacheId()); if (keys == null) { keys = new ArrayList<>(); map.put(e.cacheId(), keys); } keys.add(e.key()); } return map; }
boolean pass = res.filterResult(i); tx.entry(cctx.txKey(k)).filters(pass ? CU.empty0() : CU.alwaysFalse0Arr());
boolean pass = res.filterResult(i); tx.entry(cctx.txKey(k)).filters(pass ? CU.empty0() : CU.alwaysFalse0Arr());
if (!F.isEmpty(txEntry.entryProcessors()) || !F.isEmpty(txEntry.filters())) txEntry.cached().unswap(false);