/** * Creates an EntryEventImpl that is optimized to not fetch data from HDFS. * This is meant to be used by PUT dml from GemFireXD. */ public final EntryEventImpl newPutEntryEvent(Object key, Object value, Object aCallbackArgument) { EntryEventImpl ev = newUpdateEntryEvent(key, value, aCallbackArgument); ev.setFetchFromHDFS(false); ev.setPutDML(true); return ev; } private void extractDeltaIntoEvent(Object value, EntryEventImpl event) {
/** * Creates an EntryEventImpl that is optimized to not fetch data from HDFS. * This is meant to be used by PUT dml from GemFireXD. */ public final EntryEventImpl newPutEntryEvent(Object key, Object value, Object aCallbackArgument) { EntryEventImpl ev = newUpdateEntryEvent(key, value, aCallbackArgument); ev.setFetchFromHDFS(false); ev.setPutDML(true); return ev; }
/** * Creates an EntryEventImpl that is optimized to not fetch data from HDFS. * This is meant to be used by bulk updates by PUT dml from GemFireXD. * @see #newPutEntryEvent(Object, Object, Object) */ public final DistributedPutAllOperation newPutAllForPUTDmlOperation(Map<?, ?> map) { DistributedPutAllOperation dpao = newPutAllOperation(map); dpao.getEvent().setFetchFromHDFS(false); dpao.getEvent().setPutDML(true); return dpao; }
public final DistributedPutAllOperation newPutAllForPUTDmlOperation(Map<?, ?> map, Object callbackArg) { DistributedPutAllOperation dpao = newPutAllOperation(map, callbackArg); dpao.getEvent().setFetchFromHDFS(false); dpao.getEvent().setPutDML(true); return dpao; }
protected EntryEventImpl generateCustomEvictDestroyEvent(final Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.CUSTOM_EVICT_DESTROY, key, null/* newValue */, null, false, getMyId()); // Fix for bug#36963 if (generateEventID()) { event.setNewEventId(cache.getDistributedSystem()); } event.setFetchFromHDFS(false); return event; }
protected EntryEventImpl generateCustomEvictDestroyEvent(final Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.CUSTOM_EVICT_DESTROY, key, null/* newValue */, null, false, getMyId()); // Fix for bug#36963 if (generateEventID()) { event.setNewEventId(cache.getDistributedSystem()); } event.setFetchFromHDFS(false); return event; }
/** * Creates an event for EVICT_DESTROY operations. * It is intended that this method be overridden to allow for special * handling of Partitioned Regions. * @param key - the key that this event is related to * @return an event for EVICT_DESTROY */ protected EntryEventImpl generateEvictDestroyEvent(final Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.EVICT_DESTROY, key, null/* newValue */, null, false, getMyId()); // Fix for bug#36963 if (generateEventID()) { event.setNewEventId(cache.getDistributedSystem()); } event.setFetchFromHDFS(false); return event; }
/** * Creates an event for EVICT_DESTROY operations. * It is intended that this method be overridden to allow for special * handling of Partitioned Regions. * @param key - the key that this event is related to * @return an event for EVICT_DESTROY */ protected EntryEventImpl generateEvictDestroyEvent(final Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.EVICT_DESTROY, key, null/* newValue */, null, false, getMyId()); // Fix for bug#36963 if (generateEventID()) { event.setNewEventId(cache.getDistributedSystem()); } event.setFetchFromHDFS(false); return event; } protected EntryEventImpl generateCustomEvictDestroyEvent(final Object key) {
/** * Does the "put" of one entry for a "putall" operation. Note it calls back * to AbstractUpdateOperation.UpdateMessage#basicOperationOnRegion * * @param entry * the entry being put * @param rgn * the region the entry is put in */ public void doEntryPut(PutAllEntryData entry, DistributedRegion rgn, boolean requiresRegionContext, boolean fetchFromHDFS, boolean isPutDML) { EntryEventImpl ev = PutAllMessage.createEntryEvent(entry, getSender(), this.context, rgn, requiresRegionContext, this.possibleDuplicate, this.needsRouting, this.callbackArg, true, skipCallbacks); ev.setFetchFromHDFS(fetchFromHDFS); ev.setPutDML(isPutDML); // we don't need to set old value here, because the msg is from remote. local old value will get from next step try { super.basicOperateOnRegion(ev, rgn); } finally { if (ev.getVersionTag() != null && !ev.getVersionTag().isRecorded()) { if (rgn.getVersionVector() != null) { rgn.getVersionVector().recordVersion(getSender(), ev.getVersionTag()); } } ev.release(); } }
ev.setFetchFromHDFS(this.fetchFromHDFS);
if (tx == null) ev.setEntryLastModified(lastModifiedTime); ev.setFetchFromHDFS(fetchFromHDFS); ev.setPutDML(isPutDML); ev.setBufferedMemoryTracker(memoryTracker);
event.setFetchFromHDFS(putallOp.getEvent().isFetchFromHDFS()); event.setPutDML(putallOp.getEvent().isPutDML());
event.setFetchFromHDFS(putallOp.getEvent().isFetchFromHDFS()); event.setPutDML(putallOp.getEvent().isPutDML()); event.setBufferedMemoryTracker(putallOp.getEvent().getMemoryTracker());
ev.setInvokePRCallbacks(!notificationOnly); ev.setPossibleDuplicate(this.posDup); ev.setFetchFromHDFS(this.fetchFromHDFS); ev.setPutDML(this.isPutDML);
baseEvent.setFetchFromHDFS(this.fetchFromHDFS); baseEvent.setPutDML(this.isPutDML); ev.setFetchFromHDFS(this.fetchFromHDFS);
ev.setPossibleDuplicate(this.posDup); ev.setLockingPolicy(getLockingPolicy()); ev.setFetchFromHDFS(this.fetchFromHDFS); ev.setPutDML(this.isPutDML);