odiResult.doSave( streamManager.getOutStream( DataEngineContext.EXPR_VALUE_STREAM ), streamManager.getOutStream( DataEngineContext.ROWLENGTH_INFO_STREAM ),
OutputStream streamForExprValue = null; OutputStream streamForRowLen = null; if ( context.getMode( ) == DataEngineContext.PRESENTATION_AND_GENERATION ) { streamForExprValue = streamManager.getOutStream( DataEngineContext.EXPR_VALUE_STREAM ); streamForRowLen = streamManager.getOutStream( DataEngineContext.ROWLENGTH_INFO_STREAM ); }  odiResult.doSave( streamForExprValue, streamForRowLen,
		private void saveResultIterator( IResultIterator odiResult,				int groupLevel, int[] subQueryInfo ) throws DataException		{			try			{				// save the information of result class and group information				boolean isSubQuery = streamManager.isSubquery( );				OutputStream streamForResultClass = null;				if ( isSubQuery == false )					streamForResultClass = streamManager.getOutStream( DataEngineContext.RESULTCLASS_STREAM );				OutputStream streamForGroupInfo = streamManager.getOutStream( DataEngineContext.GROUP_INFO_STREAM );				odiResult.doSave( streamManager.getOutStream( DataEngineContext.EXPR_VALUE_STREAM ),						streamManager.getOutStream( DataEngineContext.ROWLENGTH_INFO_STREAM ),						streamForResultClass,						null,						streamForGroupInfo,						isSubQuery,						RDSave.this.exprNameSet );				streamForGroupInfo.close( );				if ( streamForResultClass != null )					streamForResultClass.close( );				// save the information of sub query information				// notice, sub query name is used instead of sub query id				if ( isSubQuery == true						&& streamManager.hasSubStream( DataEngineContext.SUBQUERY_INFO_STREAM ) == false )				{					// save info related with sub query info					OutputStream streamForSubQuery = streamManager.getSubOutStream( DataEngineContext.SUBQUERY_INFO_STREAM );					RDSubQueryUtil.doSave( streamForSubQuery,							groupLevel,							subQueryInfo );					streamForSubQuery.close( );				}			}			catch ( IOException e )			{				throw new DataException( ResourceConstants.RD_SAVE_ERROR,						e,						"Result Set" );			}				}