public enum SetOperator extends Enum<SetOperator>
StatementGraph. Non-null only on the
outer statement of a set-op program (slice 12); null on every regular
SELECT statement, every CTE / FROM-subquery / scalar / set-op-branch
body.
The enum encodes both the operator and the ALL flag:
UNION vs UNION_ALL, INTERSECT vs
INTERSECT_ALL, MINUS vs MINUS_ALL,
EXCEPT vs EXCEPT_ALL.
MINUS (Oracle / Spark / Hive) and EXCEPT
(PostgreSQL / SQL Server / standard) are kept distinct because the
parser exposes them as separate ESetOperatorType
values; preserving the dialect signal at no cost. They are
semantically equivalent but lexically distinguishable.
UNION DISTINCT (BigQuery / MySQL) is mapped to
UNION by the builder — it is a syntactic alias for the
default UNION, not a separate semantic.
| Enum Constant and Description |
|---|
EXCEPT |
EXCEPT_ALL |
INTERSECT |
INTERSECT_ALL |
MINUS |
MINUS_ALL |
UNION |
UNION_ALL |
| Modifier and Type | Method and Description |
|---|---|
static SetOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SetOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SetOperator UNION
public static final SetOperator UNION_ALL
public static final SetOperator INTERSECT
public static final SetOperator INTERSECT_ALL
public static final SetOperator MINUS
public static final SetOperator MINUS_ALL
public static final SetOperator EXCEPT
public static final SetOperator EXCEPT_ALL
public static SetOperator[] values()
for (SetOperator c : SetOperator.values()) System.out.println(c);
public static SetOperator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null