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
{
			int colIndex = this.groupCalculationUtil.getGroupDefn( )[breakLevel].getColumnIndex( );
			Object currObjectValue = null;
			Object prevObjectValue = null;
			if ( colIndex >= 0 )
			{
				currObjectValue = currRow.getFieldValue( colIndex );
				prevObjectValue = prevRow.getFieldValue( colIndex );
			}
			GroupBy groupBy = this.groupCalculationUtil.getGroupDefn( )[breakLevel];
			if ( groupBy.needsGroupStartValue( ) == false )
			{
				if ( groupBy.isInSameGroup( currObjectValue, prevObjectValue ) == false )
				{
					break;
				}
			}
			else
			{
				
				List list = this.groups[breakLevel];
				GroupInfo groupInfo = (GroupInfo) list.get( list.size( ) - 1 );
				int child = groupInfo.firstChild;
				for ( int level = breakLevel + 1; level < this.groups.length; level++ )
				{
					list = this.groups[level];
					groupInfo = (GroupInfo) list.get( child );
					child = groupInfo.firstChild;
				}