if (o instanceof Conflatable) { Conflatable object = (Conflatable)o; if (object.shouldBeConflated()) {
private static boolean skipConflation(Conflatable current, Conflatable check) { return check.shouldBeConflated() && current.shouldBeMerged() == check.shouldBeMerged() && current.getClass().equals(check.getClass()) && ArrayUtils.objectEquals(current.getRegionToConflate(), check.getRegionToConflate()) && ArrayUtils.objectEquals(current.getKeyToConflate(), check.getKeyToConflate()); }
boolean retVal = event.shouldBeConflated();
boolean retVal = event.shouldBeConflated();
private void removeIndex(Long qkey) { // Determine whether conflation is enabled for this queue and object Object o = getNoLRU(qkey, true, false, false); if (o instanceof Conflatable) { Conflatable object = (Conflatable)o; if (object.shouldBeConflated()) { // Otherwise, remove the index from the indexes map. String rName = object.getRegionToConflate(); Object key = object.getKeyToConflate(); Map latestIndexesForRegion = (Map)this.indexes.get(rName); if (latestIndexesForRegion != null) { // Remove the index. Long index = (Long)latestIndexesForRegion.remove(key); if (index != null) { this.getPartitionedRegion().getParallelGatewaySender() .getStatistics().decConflationIndexesMapSize(); if (logger.isDebugEnabled()) { logger.debug("{}: Removed index {} for {}", this, index, object); } } } } } }
if (this.enableConflation && object.shouldBeConflated()) { if (isDebugEnabled) { logger.debug("{}: Conflating {} at queue index={} queue size={} head={} tail={}",
private void conflateOldEntry(Conflatable object, Long tailKey) { PartitionedRegion region = this.getPartitionedRegion(); Conflatable conflatableObject = object; if (region.isConflationEnabled() && conflatableObject.shouldBeConflated()) { Object keyToConflate = conflatableObject.getKeyToConflate(); String rName = object.getRegionToConflate();
private void removeIndex(Long qkey) { // Determine whether conflation is enabled for this queue and object if (this._enableConflation) { // only call get after checking enableConflation for bug 40508 Object o = optimalGet(qkey); if (o instanceof Conflatable) { Conflatable object = (Conflatable)o; if (object.shouldBeConflated()) { // Otherwise, remove the index from the indexes map. String regionName = object.getRegionToConflate(); Object key = object.getKeyToConflate(); Map latestIndexesForRegion = (Map)this._indexes.get(regionName); if (latestIndexesForRegion != null) { // Remove the index. Long index = (Long)latestIndexesForRegion.remove(key); this._stats.decConflationIndexesMapSize(); if (_logger.fineEnabled()) { if (index != null) { _logger.fine(this + ": Removed index " + index + " for " + object); } } } } } } }
Collection<TValue> collection, boolean removeFromIndex, boolean skipExecuting) { if (confVal.shouldBeConflated()) { boolean result = applyConflate(confVal, confKey, confValEntry, removeList, null, collection, removeFromIndex, skipExecuting);
private void removeIndex(Long qkey) { // Determine whether conflation is enabled for this queue and object if (this.enableConflation) { // only call get after checking enableConflation for bug 40508 Object o = optimalGet(qkey); if (o instanceof Conflatable) { Conflatable object = (Conflatable)o; if (object.shouldBeConflated()) { // Otherwise, remove the index from the indexes map. String rName = object.getRegionToConflate(); Object key = object.getKeyToConflate(); Map<Object, Long> latestIndexesForRegion = this.indexes.get(rName); if (latestIndexesForRegion != null) { // Remove the index. Long index = latestIndexesForRegion.remove(key); this.stats.decConflationIndexesMapSize(); if (logger.fineEnabled()) { if (index != null) { logger.fine(this + ": Removed index " + index + " for " + object); } } } } } } }
Collection<TValue> collection, boolean removeFromIndex, boolean skipExecuting) { if (confVal.shouldBeConflated()) { boolean result = applyConflate(confVal, confKey, confValEntry, removeList, null, collection, removeFromIndex, skipExecuting);
Collection<TValue> collection, boolean removeFromIndex, boolean skipExecuting) { if (confVal.shouldBeConflated()) { boolean result = applyConflate(confVal, confKey, confValEntry, removeList, null, collection, removeFromIndex, skipExecuting);
private void removeIndex(Long qkey) { // Determine whether conflation is enabled for this queue and object Object o = getNoLRU(qkey, true, false, false); if (o instanceof Conflatable) { Conflatable object = (Conflatable)o; if (object.shouldBeConflated()) { // Otherwise, remove the index from the indexes map. String rName = object.getRegionToConflate(); Object key = object.getKeyToConflate(); Map latestIndexesForRegion = (Map)this.indexes.get(rName); if (latestIndexesForRegion != null) { // Remove the index. Long index = (Long)latestIndexesForRegion.remove(key); if (index != null) { this.getPartitionedRegion().getParallelGatewaySender() .getStatistics().decConflationIndexesMapSize(); if (logger.fineEnabled()) { logger.fine(this + ": Removed index " + index + " for " + object); } } } } } }
logger.fine(" The key that was put in index map is : " + keyToConflate + " and tailkey is " + tailKey); if (region.isConflationEnabled() && conflatableObject.shouldBeConflated()) { if (previousTailKey != null) { if (logger.fineEnabled()) {
if (this.enableConflation && object.shouldBeConflated()) { if (logger.fineEnabled()) { logger.fine(this + ": Conflating " + object + " at queue index="
if (this._enableConflation && object.shouldBeConflated()) { if (_logger.fineEnabled()) { _logger.fine(this + ": Conflating " + object + " at queue index="