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
{
			endIdx = GroupUtil.getGroupFirstRowIndex( groupLevel,
					groupIndex + 1,
					groups,
					this.groupCalculationUtil.getResultSetCache( ) ) - 1;
		}
		assert startIdx >= 0;
		assert endIdx >= 0;
		GroupBoundaryInfo result = new GroupBoundaryInfo( startIdx, endIdx );
		return result;
	}
	/**
	 * Re-sort the GroupBoundaryInfo instances of a lower group level according
	 * the ordering of GroupBoundaryInfo instances of a higher group level .
	 * 
	 * @param higherGroup
	 * @param lowerGroup
	 * @return
	 */
	private List mergeTwoGroupBoundaryInfoGroups( List higherGroup,
			List lowerGroup )
	{
		List result = new ArrayList( );
		for ( int i = 0; i < higherGroup.size( ); i++ )
		{
			GroupBoundaryInfo gbi1 = (GroupBoundaryInfo) higherGroup.get( i );
			for ( int j = 0; j < lowerGroup.size( ); j++ )
			{
				if ( gbi1.isInBoundary( (GroupBoundaryInfo) lowerGroup.get( j ) ) )
					result.add( lowerGroup.get( j ) );