public static ExpressionGenerator anySubquery(final Operator innerPlan, final ExpressionGenerator expression, final RowType outer, final RowType inner, final int pos) {
return new ExpressionGenerator() {
@Override
public TPreparedExpression getTPreparedExpression() {
return new AnySubqueryTExpression(innerPlan, expression.getTPreparedExpression(), outer, inner, pos);
}
};
}