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
void saveGroupsToStream( OutputStream outputStream ) throws IOException
	{
		int size = groups.length;
		IOUtil.writeInt( outputStream, size );
		for ( int i = 0; i < size; i++ )
		{
			List list = groups[i];
			int asize = list.size( );
			IOUtil.writeInt( outputStream, asize );
			for ( int j = 0; j < asize; j++ )
			{
				GroupInfo groupInfo = (GroupInfo) list.get( j );
				IOUtil.writeInt( outputStream, groupInfo.parent );
				IOUtil.writeInt( outputStream, groupInfo.firstChild );
			}
		}
	}
	/**
	 * The structue of a groupBoundaryInfoArray is exactly same as that of
	 * GroupCalculationUtil.groups,except that all GroupInfo instances are
	 * replaced by GroupBoundaryInfo instances.
	 * 
	 * @return
	 * @throws DataException
	 */
	ArrayList[] getGroupBoundaryInfos( ) throws DataException
	{
		ArrayList[] groupBoundaryInfos = new ArrayList[groups.length];
		for ( int i = 1; i <= groups.length; i++ )
		{