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/executor/transform/group/GroupInformationUtil.java
}
		return currentGroupIdx;
	}
	/**
	 * When the smartCache is proceed (IResultIterator.next() is called), the
	 * leafGroupIdx should be re-calculated.
	 * 
	 * @param hasNext
	 * @throws DataException
	 */
	public void next( boolean hasNext ) throws DataException
	{
		
		
		if ( hasNext == true && this.groups.length > 0 )
		{
			GroupInfo nextLeafGroup = GroupUtil.findGroup( this.groups.length - 1,
					leafGroupIdx + 1,
					this.groups );
			if ( nextLeafGroup != null
					&& this.groupCalculationUtil.getResultSetCache( )
							.getCurrentIndex( ) >= nextLeafGroup.firstChild )
			{
				
				++leafGroupIdx;
			}
		}
	}
	/**
	 * For a particual group level, it might consists of several group units.