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/GroupCalculationUtil.java
* @param rsc
	 */
	public void setResultSetCache( ResultSetCache rsc )
	{
		this.smartCache = rsc;
	}
	/**
	 * Gets group count
	 * 
	 * @return number of groupKeys
	 */
	int getGroupCount( )
	{
		return groupDefs.length;
	}
	/**
	 * Sort the group array according to the values in sortKeys[] of
	 * GroupBoundaryInfo intances. within them.
	 * 
	 * @param groupArray
	 */
	void sortGroupBoundaryInfos( ArrayList[] groupArray )
	{
		for ( int i = 0; i < groupArray.length; i++ )
		{
			Object[] toBeSorted = new Object[groupArray[i].size( )];
			for ( int j = 0; j < toBeSorted.length; j++ )
			{
				toBeSorted[j] = groupArray[i].get( j );
			}