static void fillInWindowSpec(QuerySpec qSpec, String sourceId, WindowSpec destWSpec) throws WindowingException
{
if ( sourceId != null )
{
WindowSpec sourceWSpec = qSpec.getWindowSpecs().get(sourceId);
if (sourceWSpec == null)
{
throw new WindowingException(sprintf("Window Spec %s refers to an unknown source", destWSpec));
}
if ( destWSpec.getPartition() == null )
{
destWSpec.setPartition(sourceWSpec.getPartition());
}
if ( destWSpec.getOrder() == null )
{
destWSpec.setOrder(sourceWSpec.getOrder());
}
if ( destWSpec.getWindow() == null)
{
destWSpec.setWindow(sourceWSpec.getWindow());
}
fillInWindowSpec(qSpec, sourceWSpec.getSourceId(), destWSpec);
}
}