@Override protected GetAllLocalIndexExecutorMessage clone() { return new GetAllLocalIndexExecutorMessage(this); }
@Override protected void setArgsForMember(DistributedMember member, Set<DistributedMember> messageAwareMembers) { this.target = member; // Do not set "membersToKeys"; @see setMembersToBucketIds if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.getID() + ".setArgsForMember: keys for " + this.regionPath + " :- [" + this.membersToKeys + "] for member= " + member.toString()); } }
@Override protected boolean requiresTXFlushAfterExecution() { // to flush any batched read locks return getLockingPolicy().readCanStartTX(); }
@Retained @Released final ArrayList<Object> resultList = new ArrayList<Object>(); final int numKeys = this.membersToKeys.size(); final TXStateInterface tx = this.getTXState(this.region); if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.getID() + ".execute: Got keys " + this.membersToKeys + " of size [" + numKeys + "] " + " for region " + this.region.getFullPath() + " , processorId=" + getProcessorId() + " ,tx=" + (tx != null ? tx : "null")); if (this.isLocallyExecuted()) { try { result = ProjectionRow.getCompactExecRow(val, SanityManager.DEBUG_PRINT( GfxdConstants.TRACE_RSITER, this.getID() + ".execute: Got result for key= " + currentKey + " (keyIndex=" + keyIndex + " ) for Index on region " this.getID() + ".execute: Got " + resultCount + " no of result for key= " + currentKey + " (keyIndex=" + keyIndex lastResult(resultList, false, true, true); } catch (RuntimeException re) { if (GemFireXDUtils.isOffHeapEnabled() && this.isLocallyExecuted()) { OffHeapReleaseUtil.freeOffHeapReference(resultList);
int[] projectionLobColumns, int[] projectionAllColumns) { super(new GfxdListResultCollector(null, false), region, null /*routingObjects*/, getCurrentTXState(lcc), getTimeStatsSettings(lcc), targetFormat, projectionFixedColumns, projectionVarColumns, projectionLobColumns, projectionAllColumns); this.qualifiedIndexName = qualifiedName;
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { ser_deser_time = this.timeStatsEnabled ? (ser_deser_time == 0 ? -1 /*record*/ : -2/*ignore nested call*/) : 0; super.fromData(in); this.connectionId = GemFireXDUtils.readCompressedHighLow(in); this.qualifiedIndexName = DataSerializer.readString(in); // recording end of de-serialization here instead of // AbstractOperationMessage. if (this.timeStatsEnabled && ser_deser_time == -1) { this.ser_deser_time = XPLAINUtil.recordStdTiming(getTimestamp()); } }
@Retained @Released final ArrayList<Object> resultList = new ArrayList<Object>(); final int numKeys = this.membersToKeys.size(); final TXStateInterface tx = this.getTXState(this.region); if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.getID() + ".execute: Got keys " + this.membersToKeys + " of size [" + numKeys + "] " + " for region " + this.region.getFullPath() + " , processorId=" + getProcessorId() + " ,tx=" + (tx != null ? tx : "null")); if (this.isLocallyExecuted()) { try { result = ProjectionRow.getCompactExecRow(val, SanityManager.DEBUG_PRINT( GfxdConstants.TRACE_RSITER, this.getID() + ".execute: Got result for key= " + currentKey + " (keyIndex=" + keyIndex + " ) for Index on region " this.getID() + ".execute: Got " + resultCount + " no of result for key= " + currentKey + " (keyIndex=" + keyIndex lastResult(resultList, false, true, true); } catch (RuntimeException re) { if (GemFireXDUtils.isOffHeapEnabled() && this.isLocallyExecuted()) { OffHeapReleaseUtil.freeOffHeapReference(resultList);
int[] projectionLobColumns, int[] projectionAllColumns) { super(new GfxdListResultCollector(null, false), region, null /*routingObjects*/, getCurrentTXState(lcc), getTimeStatsSettings(lcc), targetFormat, projectionFixedColumns, projectionVarColumns, projectionLobColumns, projectionAllColumns); this.qualifiedIndexName = qualifiedName;
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { ser_deser_time = this.timeStatsEnabled ? (ser_deser_time == 0 ? -1 /*record*/ : -2/*ignore nested call*/) : 0; super.fromData(in); this.connectionId = GemFireXDUtils.readCompressedHighLow(in); this.qualifiedIndexName = DataSerializer.readString(in); // recording end of de-serialization here instead of // AbstractOperationMessage. if (this.timeStatsEnabled && ser_deser_time == -1) { this.ser_deser_time = XPLAINUtil.recordStdTiming(getTimestamp()); } }
@Retained @Released final ArrayList<Object> resultList = new ArrayList<Object>(); final int numKeys = this.membersToKeys.size(); final TXStateInterface tx = this.getTXState(this.region); if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.getID() + ".execute: Got keys " + this.membersToKeys + " of size [" + numKeys + "] " + " for region " + this.region.getFullPath() + " , processorId=" + getProcessorId() + " ,tx=" + (tx != null ? tx : "null")); if (this.isLocallyExecuted()) { try { result = ProjectionRow.getCompactExecRow(val, SanityManager.DEBUG_PRINT( GfxdConstants.TRACE_RSITER, this.getID() + ".execute: Got result for key= " + currentKey + " (keyIndex=" + keyIndex + " ) for Index on region " this.getID() + ".execute: Got " + resultCount + " no of result for key= " + currentKey + " (keyIndex=" + keyIndex lastResult(resultList, false, true, true); } catch (RuntimeException re) { if (GemFireXDUtils.isOffHeapEnabled() && this.isLocallyExecuted()) { OffHeapReleaseUtil.freeOffHeapReference(resultList);
int[] projectionLobColumns, int[] projectionAllColumns) { super(new GfxdListResultCollector(null, false), region, null /*routingObjects*/, getCurrentTXState(lcc), getTimeStatsSettings(lcc), targetFormat, projectionFixedColumns, projectionVarColumns, projectionLobColumns, projectionAllColumns); this.qualifiedIndexName = qualifiedName;
/** * @see TransactionMessage#useTransactionProxy() */ @Override public boolean useTransactionProxy() { // use TX proxy to enable batching of read locks return getLockingPolicy().readCanStartTX(); }
@Override protected GetAllLocalIndexExecutorMessage clone() { return new GetAllLocalIndexExecutorMessage(this); }
@Override protected void setArgsForMember(DistributedMember member, Set<DistributedMember> messageAwareMembers) { this.target = member; // Do not set "membersToKeys"; @see setMembersToBucketIds if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.getID() + ".setArgsForMember: keys for " + this.regionPath + " :- [" + this.membersToKeys + "] for member= " + member.toString()); } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { ser_deser_time = this.timeStatsEnabled ? (ser_deser_time == 0 ? -1 /*record*/ : -2/*ignore nested call*/) : 0; super.fromData(in); this.connectionId = GemFireXDUtils.readCompressedHighLow(in); this.qualifiedIndexName = DataSerializer.readString(in); // recording end of de-serialization here instead of // AbstractOperationMessage. if (this.timeStatsEnabled && ser_deser_time == -1) { this.ser_deser_time = XPLAINUtil.recordStdTiming(getTimestamp()); } }
/** * @see TransactionMessage#canStartRemoteTransaction() */ @Override public final boolean canStartRemoteTransaction() { return getLockingPolicy().readCanStartTX(); }
@Override protected GetAllLocalIndexExecutorMessage clone() { return new GetAllLocalIndexExecutorMessage(this); }
@Override protected void setArgsForMember(DistributedMember member, Set<DistributedMember> messageAwareMembers) { this.target = member; // Do not set "membersToKeys"; @see setMembersToBucketIds if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, this.getID() + ".setArgsForMember: keys for " + this.regionPath + " :- [" + this.membersToKeys + "] for member= " + member.toString()); } }
/** * @see TransactionMessage#canStartRemoteTransaction() */ @Override public final boolean canStartRemoteTransaction() { return getLockingPolicy().readCanStartTX(); }
this.getAllMsg = new GetAllLocalIndexExecutorMessage( this.gfIndexContainer.getQualifiedTableName(), getAllKeys, region, this.lcc, this.activation.getConnectionID(), tx,