public enum JoinRelType extends Enum<JoinRelType>
| Enum Constant and Description |
|---|
ANTI
Anti-join (also known as Anti-semi-join).
|
FULL
Full-outer join.
|
INNER
Inner join.
|
LEFT
Left-outer join.
|
RIGHT
Right-outer join.
|
SEMI
Semi-join.
|
| Modifier and Type | Method and Description |
|---|---|
JoinRelType |
cancelNullsOnLeft()
Returns a join type similar to this but that does not generate nulls on
the left.
|
JoinRelType |
cancelNullsOnRight()
Returns a join type similar to this but that does not generate nulls on
the right.
|
boolean |
canPushIntoFromAbove()
Returns whether this join type accepts pushing predicates from above into its predicate.
|
boolean |
canPushLeftFromAbove()
Returns whether this join type accepts pushing predicates from above into its left input.
|
boolean |
canPushLeftFromWithin()
Returns whether this join type accepts pushing predicates from within into its left input.
|
boolean |
canPushRightFromAbove()
Returns whether this join type accepts pushing predicates from above into its right input.
|
boolean |
canPushRightFromWithin()
Returns whether this join type accepts pushing predicates from within into its right input.
|
boolean |
generatesNullsOn(int i)
Returns whether this join type generates nulls on side #
i. |
boolean |
generatesNullsOnLeft()
Returns whether a join of this type may generate NULL values on the
left-hand side.
|
boolean |
generatesNullsOnRight()
Returns whether a join of this type may generate NULL values on the
right-hand side.
|
boolean |
isOuterJoin()
Returns whether a join of this type is an outer join, returns true if the join type may
generate NULL values, either on the left-hand side or right-hand side.
|
boolean |
projectsRight() |
JoinRelType |
swap()
Swaps left to right, and vice versa.
|
static JoinRelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JoinRelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JoinRelType INNER
public static final JoinRelType LEFT
public static final JoinRelType RIGHT
public static final JoinRelType FULL
public static final JoinRelType SEMI
For example, EMP semi-join DEPT finds all EMP records
that have a corresponding DEPT record:
SELECT * FROM EMP
WHERE EXISTS (SELECT 1 FROM DEPT
WHERE DEPT.DEPTNO = EMP.DEPTNO)
public static final JoinRelType ANTI
For example, EMP anti-join DEPT finds all EMP records
that do not have a corresponding DEPT record:
SELECT * FROM EMP
WHERE NOT EXISTS (SELECT 1 FROM DEPT
WHERE DEPT.DEPTNO = EMP.DEPTNO)
public final String lowerName
public static JoinRelType[] values()
for (JoinRelType c : JoinRelType.values()) System.out.println(c);
public static JoinRelType 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 nullpublic boolean generatesNullsOnRight()
public boolean generatesNullsOnLeft()
public boolean isOuterJoin()
public JoinRelType swap()
public boolean generatesNullsOn(int i)
i.public JoinRelType cancelNullsOnLeft()
public JoinRelType cancelNullsOnRight()
public boolean projectsRight()
@API(since="1.28",
status=EXPERIMENTAL)
public boolean canPushIntoFromAbove()
@API(since="1.28",
status=EXPERIMENTAL)
public boolean canPushLeftFromAbove()
@API(since="1.28",
status=EXPERIMENTAL)
public boolean canPushRightFromAbove()
@API(since="1.28",
status=EXPERIMENTAL)
public boolean canPushLeftFromWithin()
@API(since="1.28",
status=EXPERIMENTAL)
public boolean canPushRightFromWithin()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.