RuntimeIterator(CompiledIteratorDef cmpIteratorDefn, ObjectType elementType) { if (elementType == null || cmpIteratorDefn == null) { throw new IllegalArgumentException( "elementType and/or cmpIteratorDefn should not be null"); } this.name = cmpIteratorDefn.getName(); this.elementType = elementType; this.cmpIteratorDefn = cmpIteratorDefn; }
private RuntimeIterator getMatchingRuntimeIterator(String receiverId, List expansionList) throws QueryInvocationTargetException { Iterator iterator = expansionList.iterator(); while (iterator.hasNext()) { RuntimeIterator ritr = (RuntimeIterator) iterator.next(); if (ritr.getCmpIteratorDefn().getName().equals(receiverId)) { return ritr; } } throw new QueryInvocationTargetException("Unable to locate correct iterator for " + receiverId); }
if (def instanceof CompiledRegion) { CompiledBindArgument bindArg = new CompiledBindArgument(1); CompiledIteratorDef newDef = new CompiledIteratorDef(iterDef.getName(), null, bindArg); retValues[0] = def.evaluate(this.context); retValues[1] = newDef; CompiledIteratorDef newDef = new CompiledIteratorDef(iterDef.getName(), null, cv); retValues[0] = v.evaluate(this.context); retValues[1] = newDef;
CompiledValue cv = iterDef.getCollectionExpr(); this.addnlProjType = rIter.getElementType(); String name = iterDef.getName(); if (isEmpty(name)) {
return new CompiledIteratorDef(iterDef.getName(), rItr.getElementType(), getModifiedDependentCompiledValue(context, currItrID, iterDef.getCollectionExpr(), isDependent));
if (currentLevel.getCmpIteratorDefn().getCollectionExpr() .getType() == OQLLexerTokenTypes.RegionPath) { key = currentLevel.getCmpIteratorDefn().getName() + ':' + currentLevel.getDefinition(); } else if (currentLevel.getCmpIteratorDefn().getCollectionExpr() .getType() == OQLLexerTokenTypes.LITERAL_select) {