public boolean rewritePre(Mutable<ILogicalOperator> opRef, IOptimizationContext context) throws AlgebricksException {
if (context.checkIfInDontApplySet(this, opRef.getValue())) {
return false;
}
VXQueryOptimizationContext vxqueryContext = (VXQueryOptimizationContext) context;
vxqueryContext.incrementTotalDataSources();
context.addToDontApplySet(this, opRef.getValue());
return false;
}
}