/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public Iterator<?> getLocalEntriesIterator( InternalRegionFunctionContext context, boolean primaryOnly, boolean forUpdate, boolean includeValues, final LocalRegion currRegion) { assert context == null || context.getLocalBucketSet(currRegion) == null: "unexpected bucket set for LocalRegion " + currRegion + ": " + context.getLocalBucketSet(currRegion); return currRegion.getBestLocalIterator(includeValues, 1.0, false); }
final Set<Integer> bucketSet; if (context != null && (bucketSet = context.getLocalBucketSet(this)) != null) { return new PRLocalScanIterator(bucketSet, txState, forUpdate, includeValues, true);
final boolean isTXView = (view instanceof TXStateInterface); @SuppressWarnings("unchecked") final Set<Integer> bucketSet = context.getLocalBucketSet(this.region); SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM_UPDATE, "GemFireContainer#getEntrySetIterator: Creating "
final boolean isTXView = (view instanceof TXStateInterface); @SuppressWarnings("unchecked") final Set<Integer> bucketSet = context.getLocalBucketSet(this.region); SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM_UPDATE, "GemFireContainer#getEntrySetIterator: Creating "
final boolean isTXView = (view instanceof TXStateInterface); @SuppressWarnings("unchecked") final Set<Integer> bucketSet = context.getLocalBucketSet(this.region); SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM_UPDATE, "GemFireContainer#getEntrySetIterator: Creating "
public static Set<Integer> getLocalBucketSet(final GemFireContainer gfc, final LocalRegion region, final Activation act, final String indexType) { try { final FunctionContext fc; if (act != null && (fc = act.getFunctionContext()) != null) { @SuppressWarnings("unchecked") final Set<Integer> localBucketSet = ((InternalRegionFunctionContext)fc) .getLocalBucketSet(region); if (GemFireXDUtils.TraceIndex) { GfxdIndexManager.traceIndex("%s the baseContainer is %s " + "and the local data set is %s, function context is %s", indexType, region.getFullPath(), localBucketSet, fc); } if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, indexType + " scanning index: " + gfc + ", local data set is " + localBucketSet + ", and the function context: " + fc); } return localBucketSet; } if (GemFireXDUtils.TraceIndex) { GfxdIndexManager.traceIndex("%s the " + "FunctionContext is null ", indexType); } } catch (CacheClosedException ex) { // can happen if GemFireXD is still booting return null; } return null; }
public static Set<Integer> getLocalBucketSet(final GemFireContainer gfc, final LocalRegion region, final Activation act, final String indexType) { try { final FunctionContext fc; if (act != null && (fc = act.getFunctionContext()) != null) { @SuppressWarnings("unchecked") final Set<Integer> localBucketSet = ((InternalRegionFunctionContext)fc) .getLocalBucketSet(region); if (GemFireXDUtils.TraceIndex) { GfxdIndexManager.traceIndex("%s the baseContainer is %s " + "and the local data set is %s, function context is %s", indexType, region.getFullPath(), localBucketSet, fc); } if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, indexType + " scanning index: " + gfc + ", local data set is " + localBucketSet + ", and the function context: " + fc); } return localBucketSet; } if (GemFireXDUtils.TraceIndex) { GfxdIndexManager.traceIndex("%s the " + "FunctionContext is null ", indexType); } } catch (CacheClosedException ex) { // can happen if GemFireXD is still booting return null; } return null; }
public static Set<Integer> getLocalBucketSet(final GemFireContainer gfc, final LocalRegion region, final Activation act, final String indexType) { try { final FunctionContext fc; if (act != null && (fc = act.getFunctionContext()) != null) { @SuppressWarnings("unchecked") final Set<Integer> localBucketSet = ((InternalRegionFunctionContext)fc) .getLocalBucketSet(region); if (GemFireXDUtils.TraceIndex) { GfxdIndexManager.traceIndex("%s the baseContainer is %s " + "and the local data set is %s, function context is %s", indexType, region.getFullPath(), localBucketSet, fc); } if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, indexType + " scanning index: " + gfc + ", local data set is " + localBucketSet + ", and the function context: " + fc); } return localBucketSet; } if (GemFireXDUtils.TraceIndex) { GfxdIndexManager.traceIndex("%s the " + "FunctionContext is null ", indexType); } } catch (CacheClosedException ex) { // can happen if GemFireXD is still booting return null; } return null; }
this.bucketSet = rfc.getLocalBucketSet(region);
this.bucketSet = rfc.getLocalBucketSet(region);
this.bucketSet = rfc.getLocalBucketSet(region);