Object temp = iterator.next(); iterator.remove(); if (context.getBucketList() != null && this.region instanceof BucketRegion) { long start = updateIndexUseStats(); try { PartitionedRegion partitionedRegion = ((Bucket) this.region).getPartitionedRegion(); for (Object bucketId : context.getBucketList()) { AbstractIndex bucketIndex = PartitionedIndex.getBucketIndex(partitionedRegion, this.indexName, (Integer) bucketId);
@Override public void query(Object key, int operator, Collection results, ExecutionContext context) throws TypeMismatchException, FunctionDomainException, NameResolutionException, QueryInvocationTargetException { // get a read lock when doing a lookup if (context.getBucketList() != null && this.region instanceof BucketRegion) { PartitionedRegion pr = ((Bucket) this.region).getPartitionedRegion(); long start = updateIndexUseStats(); try { for (Object bucketId : context.getBucketList()) { AbstractIndex bucketIndex = PartitionedIndex.getBucketIndex(pr, this.indexName, (Integer) bucketId); if (bucketIndex == null) { continue; } bucketIndex.lockedQuery(key, operator, results, null/* No Keys to be removed */, context); } } finally { updateIndexUseEndStats(start); } } else { long start = updateIndexUseStats(); try { lockedQuery(key, operator, results, null/* No Keys to be removed */, context); } finally { updateIndexUseEndStats(start); } } }
@Override public void query(Object key, int operator, Collection results, Set keysToRemove, ExecutionContext context) throws TypeMismatchException, FunctionDomainException, NameResolutionException, QueryInvocationTargetException { // get a read lock when doing a lookup if (context.getBucketList() != null && this.region instanceof BucketRegion) { PartitionedRegion pr = ((Bucket) region).getPartitionedRegion(); long start = updateIndexUseStats(); try { for (Object bucketId : context.getBucketList()) { AbstractIndex bucketIndex = PartitionedIndex.getBucketIndex(pr, this.indexName, (Integer) bucketId); if (bucketIndex == null) { continue; } bucketIndex.lockedQuery(key, operator, results, keysToRemove, context); } } finally { updateIndexUseEndStats(start); } } else { long start = updateIndexUseStats(); try { lockedQuery(key, operator, results, keysToRemove, context); } finally { updateIndexUseEndStats(start); } } }
QueryInvocationTargetException { if (context.getBucketList() != null) { if (this.region instanceof BucketRegion) { PartitionedRegion partitionedRegion = ((Bucket) this.region).getPartitionedRegion(); long start = updateIndexUseStats(); try { for (Object bucketId : context.getBucketList()) { AbstractIndex bucketIndex = PartitionedIndex.getBucketIndex(partitionedRegion, this.indexName, (Integer) bucketId);
ObjectType elementType = baseResults.getCollectionType().getElementType(); boolean isStruct = elementType != null && elementType.isStructType(); boolean isBucketNodes = context.getBucketList() != null; boolean createOrderedResultSet = isBucketNodes && this.orderByAttrs != null; boolean[] objectChangedMarker = new boolean[] {false};
if (context.getBucketList() != null && this.region instanceof BucketRegion) { PartitionedRegion pr = ((Bucket) region).getPartitionedRegion(); long start = updateIndexUseStats(); try { for (Object bucketId : context.getBucketList()) { AbstractIndex bucketIndex = PartitionedIndex.getBucketIndex(pr, this.indexName, (Integer) bucketId);
&& (context.getIsPRQueryNode() || context.getBucketList() == null)) { ((Bag) newResults).applyLimit(limitValue);
if (context.getBucketList() != null && region instanceof PartitionedRegion) { LocalDataSet localData = new LocalDataSet(((PartitionedRegion) region), new HashSet(context.getBucketList())); this.region = localData; if (includeKeys) {
IndexProtocol i0 = null; IndexProtocol i1 = null; for (Object b : context.getBucketList()) { i0 = pr0 != null ? PartitionedIndex.getBucketIndex(pr0, index0.getName(), (Integer) b) : indxInfo[0]._index;
observer.beforeIndexLookup(indxInfo[0]._index, OQLLexerTokenTypes.TOK_EQ, null); observer.beforeIndexLookup(indxInfo[1]._index, OQLLexerTokenTypes.TOK_EQ, null); if (context.getBucketList() != null) { data = queryEquijoinConditionBucketIndexes(indxInfo, context); } else {
prIndex.verifyAndCreateMissingIndex(context.getBucketList()); } catch (Exception ignored) {
&& (context.getIsPRQueryNode() || context.getBucketList() == null) && newResults.size() == limitValue) { keepAdding = false;
context.pushExecCache((Integer) context.cacheGet(scopeID)); context.setDistinct(this.distinct); if (this.hasUnmappedOrderByCols && context.getBucketList() != null) { throw new QueryInvalidException( "Query contains atleast one order by field which is not present in projected fields."); if (context.getBucketList() != null && context.getBucketList().size() > 0) { needsTopLevelOrdering = true; if (context.getBucketList() != null && this.distinct) { return result;
TypeMismatchException, NameResolutionException, QueryInvocationTargetException { boolean isPRQueryNode = context.getIsPRQueryNode(); boolean isBucketNode = context.getBucketList() != null; switch (this.aggFuncType) {
observer.beforeIndexLookup(indxInfo[0]._index, this._operator, null); observer.beforeIndexLookup(indxInfo[1]._index, this._operator, null); if (context.getBucketList() != null) { data = QueryUtils.queryEquijoinConditionBucketIndexes(indxInfo, context); } else {