QueryPlanIndexHook hook = QueryPlanIndexHookUtil.getHook(statementContext.getAnnotations());
if (queryPlanLogging && (queryPlanLog.isInfoEnabled() || hook != null)) {
queryPlanLog.info("Query plan: " + queryPlan.toQueryPlan());
if (hook != null) {
hook.join(queryPlan);
}
}
boolean joinRemoveStream = selectsRemoveStream || hasAggregations;
return new JoinSetComposerPrototypeImpl(statementName,