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/QueryExecutor.java
{
	private 	IBaseQueryDefinition 	baseQueryDefn;
	private 	AggregateTable 			aggrTable;
	private 	AggregateCalculator		aggregates;
	
	private 	Scriptable 				sharedScope;
	
	
	private		Scriptable				parentScope;
	
	
	private		Scriptable				queryScope;
	private 	boolean 				isPrepared = false;
	private 	boolean					isExecuted = false;
	private		Map						queryAppContext;
	
	private		int						nestedLevel = 1;
	
	protected 	DataSourceRuntime		dataSource;	
	protected	DataSetRuntime			dataSet;
	
	protected 	IDataSource				odiDataSource;
	protected 	IQuery					odiQuery;
	
	
	protected	QueryResults			outerResults;	
	private 	IResultIterator			odiResult;