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/impl/document/RDLoad.java
/**
	 * @param absoluteIndex
	 * @throws IOException
	 * @throws DataException 
	 */
	private void skipTo( int absoluteIndex ) throws IOException, DataException
	{
		if ( readIndex == absoluteIndex )
			return;
		if ( version == VersionManager.VERSION_2_0 )
		{
			int exprCount;
			int gapRows = absoluteIndex - readIndex;
			for ( int j = 0; j < gapRows; j++ )
			{
				exprCount = IOUtil.readInt( rowDis );
				for ( int i = 0; i < exprCount; i++ )
				{
					IOUtil.readString( rowDis );
					IOUtil.readObject( rowDis );
				}
			}
		}
		else
		{
			initSkipData( );
			int gapRow = readIndex - currSkipIndex;
			if ( gapRow > 0 )
				this.lenDis.skipBytes( gapRow * INT_LENGTH );
			int rowOffsetRead = IOUtil.readInt( lenDis );