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 result;
	}
	/**
	 * This method return the OrderingInfo that will be finally used to
	 * re-generate the smartcache.
	 * 
	 * @param groups
	 * @return
	 */
	OrderingInfo getOrderingInfo( List[] groups )
	{
		
		for ( int i = 1; i < groups.length; i++ )
		{
			groups[i] = mergeTwoGroupBoundaryInfoGroups( groups[i - 1],
					groups[i] );
		}
		
		OrderingInfo odInfo = new OrderingInfo( );
		for ( int i = 0; i < groups[groups.length - 1].size( ); i++ )
		{
			odInfo.add( ( (GroupBoundaryInfo) groups[groups.length - 1].get( i ) ).getStartIndex( ),
					( (GroupBoundaryInfo) groups[groups.length - 1].get( i ) ).getEndIndex( ) );
		}
		return odInfo;
	}
}