Enum JoinStrategy
- All Implemented Interfaces:
Serializable,Comparable<JoinStrategy>
Currently available join strategies and corresponding join hint names.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInstructs the optimizer to use broadcast hash join strategy.Instructs the optimizer to use lookup join strategy.Instructs the optimizer to use nest loop join strategy.Instructs the optimizer to use shuffle hash join strategy.Instructs the optimizer to use shuffle sort merge join strategy. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisJoinStrategy(String hintName) static booleanisLookupHint(String hintName) static booleanvalidOptions(String hintName, List<String> options) static JoinStrategyReturns the enum constant of this type with the specified name.static JoinStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BROADCAST
Instructs the optimizer to use broadcast hash join strategy. If both sides are specified in this hint, the side that is first written will be broadcast. -
SHUFFLE_HASH
Instructs the optimizer to use shuffle hash join strategy. If both sides are specified in this hint, the side that is first written will be treated as the build side. -
SHUFFLE_MERGE
Instructs the optimizer to use shuffle sort merge join strategy. As long as one of the side is specified in this hint, it will be tried. -
NEST_LOOP
Instructs the optimizer to use nest loop join strategy. If both sides are specified in this hint, the side that is first written will be treated as the build side. -
LOOKUP
Instructs the optimizer to use lookup join strategy. Only accept key-value hint options.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isJoinStrategy
-
getJoinHintName
-
validOptions
-
isLookupHint
-