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
{
	/**
	 * 
	 */
	public int compare( Object o1, Object o2 )
	{
		Object[] sortKeys1 = ( (GroupBoundaryInfo) o1 ).getSortKeys( );
		Object[] sortKeys2 = ( (GroupBoundaryInfo) o2 ).getSortKeys( );
		boolean[] sortDirection = ( (GroupBoundaryInfo) o1 ).getSortDirection( );
		int result = 0;
		for ( int i = 0; i < sortKeys1.length; i++ )
		{
			result = compareTwoValues( sortKeys1[i], sortKeys2[i] );
			if ( result != 0 )
			{
				if ( sortDirection[i] == false )
				{
					result = result * -1;
					break;
				}
			}
		}
		return result;
	}
	private int compareTwoValues( Object obj1, Object obj2 )
	{