public final class SetOperatorRules extends Object implements LayoutRule
UNION/INTERSECT/EXCEPT/MINUS) and before the
SELECT that follows the operator. So
SELECT 1 UNION ALL SELECT 2 becomes:
SELECT 1 UNION ALL SELECT 2
The break goes before the operator's first word only, so a multi-word
operator like UNION ALL stays on one line (ALL carries no
break). Priority LayoutPriorities.CLAUSE_LINEBREAK. Iterative;
read-only over tokens.
Plan reference: §7.3/S25, §7.4/S25.
| Constructor and Description |
|---|
SetOperatorRules() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(LayoutContext context)
Apply the rule, requesting layout decisions on the context.
|
String |
name()
Short, stable identifier for logging/diagnostics.
|
int |
priority()
The rule's precedence.
|
public SetOperatorRules()
public int priority()
LayoutRulepriority in interface LayoutRulepublic String name()
LayoutRulename in interface LayoutRulepublic void apply(LayoutContext context)
LayoutRuleapply in interface LayoutRule