Bug 131011 Support running query based on report document data
Data Engine should support running a query based on data set and expression data stored in a report document. This bugzilla entry serves as a repository for design docs and notes related to this feature.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
private IResultService rService;
	
	
	private GroupUtil groupUtil;
	
	protected static Logger logger = Logger.getLogger( ResultIterator.class.getName( ) );
	/**
	 * Constructor for report query (which produces a QueryResults)
	 * 
	 * @param context
	 * @param queryResults
	 * @param query
	 * @param odiResult
	 * @param scope
	 * @throws DataException
	 */
	ResultIterator( IResultService rService,
			org.eclipse.birt.data.engine.odi.IResultIterator odiResult,
			Scriptable scope ) throws DataException
	{
		assert rService != null
				&& rService.getQueryResults( ) != null && odiResult != null
				&& scope != null;
		this.rService = rService;
		this.odiResult = odiResult;
		this.scope = scope;
		this.context = rService.getContext( );
		IBaseQueryDefinition queryDefn = rService.getQueryDefn( );
		assert queryDefn != null;