* Utility methods to deal with chains of views, and for merge/group-by views.
*/
public class ViewServiceHelper
{
public static IStreamRandomAccess getOptPreviousExprRandomAccess(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext) {
IStreamRandomAccess randomAccess = null;
if (agentInstanceViewFactoryContext.getPreviousNodeGetter() != null)
{
RandomAccessByIndexGetter getter = (RandomAccessByIndexGetter) agentInstanceViewFactoryContext.getPreviousNodeGetter();
randomAccess = new IStreamRandomAccess(getter);
getter.updated(randomAccess);
}
return randomAccess;
}