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
currSkipIndex = readIndex + 1;
			
			gapRow = absoluteIndex - currSkipIndex;
			if ( gapRow > 0 )
				this.lenDis.skipBytes( gapRow * INT_LENGTH );
			int rowOffsetAbsolute = IOUtil.readInt( lenDis );
			currSkipIndex = absoluteIndex + 1;
			
			int skipBytesLen = rowOffsetAbsolute - rowOffsetRead;
			if ( skipBytesLen > 0 )
				this.rowDis.skipBytes( skipBytesLen );
			readIndex = absoluteIndex;
		}
	}
	
	/**
	 * @throws DataException
	 */
	private void initSkipData( ) throws DataException
	{
		if ( this.lenDis != null )
			return;
		
		lenIs = context.getInputStream( queryResultID,
				subQueryID,
				DataEngineContext.ROWLENGTH_INFO_STREAM );
		lenBis = new BufferedInputStream( lenIs );
		lenDis = new DataInputStream( lenBis );
	}