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
* @param groupLevel
	 * @return int[], group star index and end index
	 * @throws DataException
	 */
	public int[] getCurrentGroupInfo( int groupLevel ) throws DataException
	{
		if ( groupLevel == 0 )
		{
			return new int[]{
					0,
					this.groupCalculationUtil.getResultSetCache( ).getCount( )
			};
		}
		
		GroupInfo groupInfo;
		
		int groupLevelIndex = this.leafGroupIdx;
		for ( int i = groups.length - 1; i > groupLevel - 1; i-- )
		{
			List parentGroupInfo = groups[i];
			groupInfo = (GroupInfo) parentGroupInfo.get( groupLevelIndex );
			groupLevelIndex = groupInfo.parent;
		}
		
		
		int startIndex = groupLevelIndex;
		
		
		int endIndex = startIndex + 1;
		startIndex = GroupUtil.getGroupFirstRowIndex( groupLevel,