/** * Returns the wrapped {@link KeyInfo}. */ public final KeyInfo getKeyInfo(Object key, Object callbackArg) { return getKeyInfo(key, null, callbackArg); }
public KeyInfo getKeyInfo(Object key, Object callbackArg) { return getKeyInfo(key, null, callbackArg); }
/** * @see InternalDataView#getEntry(Object, Object, LocalRegion, boolean) */ public Region.Entry<?, ?> getEntry(final Object key, final Object callbackArg, final LocalRegion localRegion, final boolean allowTombstones) { // creating a KeyInfo here to avoid possible multiple resolver calls // to get the bucketId final KeyInfo keyInfo = localRegion.getKeyInfo(key, callbackArg); return getEntry(keyInfo, localRegion, false, allowTombstones); }
/** * @see InternalDataView#accessEntry(Object, Object, LocalRegion) */ public Region.Entry<?, ?> accessEntry(final Object key, final Object callbackArg, final LocalRegion localRegion) { // creating a KeyInfo here to avoid possible multiple resolver calls // to get the bucketId final KeyInfo keyInfo = localRegion.getKeyInfo(key, callbackArg); return getEntry(keyInfo, localRegion, true, false); }
/** * @param rememberRead true if read should be remembered in a transaction * @since 5.5 */ private Object basicGetValueInVM(Object key, boolean rememberRead) throws EntryNotFoundException { return getDataView().getValueInVM(getKeyInfo(key), this, rememberRead); }
/** internally we often need to get an entry whether it is a tombstone or not */ public Region.Entry getEntry(Object key, boolean allowTombstones) { return getDataView().getEntry(getKeyInfo(key), this, allowTombstones); }
public boolean containsValueForKey(Object key) { discoverJTA(); return getDataView().containsValueForKey(getKeyInfo(key), this); }
public boolean containsKey(Object key) { checkReadiness(); checkForNoAccess(); return getDataView().containsKey(getKeyInfo(key), this); }
@Retained protected EntryEventImpl(LocalRegion region, Operation op, Object key, boolean originRemote, DistributedMember distributedMember, boolean generateCallbacks, boolean fromRILocalDestroy) { this.region = region; this.op = op; this.keyInfo = this.region.getKeyInfo(key); setOriginRemote(originRemote); setGenerateCallbacks(generateCallbacks); this.distributedMember = distributedMember; setFromRILocalDestroy(fromRILocalDestroy); }
/** * Just like getEntry but also updates the stats that get would have depending * on a flag. See bug 42410. Also skips discovering JTA * * @param key * @return the entry if it exists; otherwise null. */ public Entry accessEntry(Object key, boolean updateStats) { validateKey(key); checkReadiness(); checkForNoAccess(); if(updateStats) { return getDataView().accessEntry(getKeyInfo(key), this); } else { return getDataView().getEntry(getKeyInfo(key), this, false); } }
public Region.Entry getEntry(Object key) { validateKey(key); checkReadiness(); checkForNoAccess(); discoverJTA(); return getDataView().getEntry(getKeyInfo(key), this, false); }
public boolean containsTombstone(Object key) { checkReadiness(); checkForNoAccess(); if (!this.concurrencyChecksEnabled) { return false; } else { try { Entry entry = getDataView().getEntry(getKeyInfo(key), this, true); if (entry == null) { return false; } else { return (entry.getValue() == Token.TOMBSTONE); } } catch (EntryDestroyedException e) { return true; } } }
this.keyInfo = this.region.getKeyInfo(key, newVal, callbackArgument);
((KeyWithRegionContext)this.key).setRegionContext(r); KeyInfo keyInfo = r.getKeyInfo(key, cbArg); val = r.getDataView().getSerializedValue(r, keyInfo, false, this.context, null, false, false/*for replicate regions*/); valueBytes = val instanceof RawValue ? (RawValue)val : new RawValue(val);
|| basicGetLoader() != null) { value = view.findObject(getKeyInfo(key, aCallbackArgument), this, isCreate, generateCallbacks, value, disableCopyOnRead, preferCD, requestingClient, clientEvent, returnTombstones, false/*allowReadFromHDFS*/);
boolean isMiss = true; try { KeyInfo keyInfo = getKeyInfo(key, aCallbackArgument); Object value = getDataView().getDeserializedValue(keyInfo, this, true, disableCopyOnRead, preferCD, clientEvent, returnTombstones, allowReadFromHDFS, retainResult); final boolean isCreate = value == null;
((KeyWithRegionContext)this.key).setRegionContext(r); final KeyInfo keyInfo = r.getKeyInfo(key); Region.Entry re = r.getDataView().getEntry(keyInfo, r, true); if(re==null) {
((KeyWithRegionContext)this.key).setRegionContext(r); final KeyInfo keyInfo = r.getKeyInfo(this.key, this.cbArg); val = view.getSerializedValue(r, keyInfo, false, this.context, null, false, false/*for replicate regions*/);