/** * Populates the independent runtime iterator map for index creation purposes. This method does * not create any canonicalized index ids etc. */ public void addToIndependentRuntimeItrMapForIndexCreation(CompiledIteratorDef itrDef) throws AmbiguousNameException, TypeMismatchException, NameResolutionException { Set set = new HashSet(); this.computeUltimateDependencies(itrDef, set); // If the set is empty then add the self RuntimeIterator to the Map. if (set.isEmpty()) { RuntimeIterator itr = itrDef.getRuntimeIterator(this); set.add(itr); } this.itrDefToIndpndtRuntimeItrMap.put(itrDef, set); }
public SelectResults getEmptyResultSet(Object[] parameters, InternalCache cache, Query query) throws FunctionDomainException, TypeMismatchException, NameResolutionException, QueryInvocationTargetException { ExecutionContext context = new QueryExecutionContext(parameters, cache, query); computeDependencies(context); context.newScope((Integer) context.cacheGet(scopeID)); context.pushExecCache((Integer) context.cacheGet(scopeID)); SelectResults results = null; try { Iterator iter = iterators.iterator(); while (iter.hasNext()) { CompiledIteratorDef iterDef = (CompiledIteratorDef) iter.next(); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.bindIterator(rIter); } results = prepareEmptyResultSet(context, false); } finally { context.popScope(); context.popExecCache(); } return results; }
if (!this.hasInitOccurredOnce) { iterDef.computeDependencies(this.initContext); rIter = iterDef.getRuntimeIterator(this.initContext); this.initContext.addToIndependentRuntimeItrMapForIndexCreation(iterDef); rIter = iterDef.getRuntimeIterator(this.initContext);
if (!this.hasInitOccurredOnce) { iterDef.computeDependencies(this.initContext); rIter = iterDef.getRuntimeIterator(this.initContext); this.initContext.addToIndependentRuntimeItrMapForIndexCreation(iterDef); rIter = iterDef.getRuntimeIterator(this.initContext);
if (!this.hasInitOccurredOnce) { iterDef.computeDependencies(this.initContext); rIter = iterDef.getRuntimeIterator(this.initContext); this.initContext.addToIndependentRuntimeItrMapForIndexCreation(iterDef); rIter = iterDef.getRuntimeIterator(this.initContext);
itr = itrDef.getRuntimeIterator(this); set.add(itr); RuntimeIterator currItr = itrDef.getRuntimeIterator(this); currItr.setIndexInternalID((mgr == null || (tempIndexID = mgr.getCanonicalizedIteratorName(itrDef.genFromClause(this))) == null)
RuntimeIterator rIter = (iterDef.getRuntimeIterator(this.context)); String definition = rIter.getDefinition(); this.canonicalizedIteratorDefinitions = new String[1];
CompiledIteratorDef iterDef = (CompiledIteratorDef) list.get(i); iterDef.computeDependencies(this.context); RuntimeIterator rIter = iterDef.getRuntimeIterator(this.context); this.context.addToIndependentRuntimeItrMapForIndexCreation(iterDef); this.context.bindIterator(rIter);
iterDef.computeDependencies(context); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.addToIndependentRuntimeItrMapForIndexCreation(iterDef); context.bindIterator(rIter);
try { CompiledIteratorDef iterDef = (CompiledIteratorDef) iterators.get(0); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.bindIterator(rIter);
RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.addToIndependentRuntimeItrMap(iterDef); context.bindIterator(rIter);
iterDef.computeDependencies(context); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.addToIndependentRuntimeItrMapForIndexCreation(iterDef); context.bindIterator(rIter);
iterDef.computeDependencies(context); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.addToIndependentRuntimeItrMapForIndexCreation(iterDef); context.bindIterator(rIter);
iterDef.computeDependencies(context); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.addToIndependentRuntimeItrMapForIndexCreation(iterDef); context.bindIterator(rIter);
while (iter.hasNext()) { CompiledIteratorDef iterDef = (CompiledIteratorDef) iter.next(); RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.bindIterator(rIter);