public enum CBOFallbackStrategy extends Enum<CBOFallbackStrategy>
| Enum Constant and Description |
|---|
ALWAYS
Always use the legacy optimizer, CBO errors are not fatal.
|
CONSERVATIVE
Use the legacy optimizer only when the CBO exception is not related to subqueries and views.
|
NEVER
Never use the legacy optimizer, all CBO errors are fatal.
|
TEST
Specific strategy only for tests.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
allowsRetry() |
static CBOFallbackStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CBOFallbackStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CBOFallbackStrategy NEVER
public static final CBOFallbackStrategy CONSERVATIVE
public static final CBOFallbackStrategy ALWAYS
public static final CBOFallbackStrategy TEST
public static CBOFallbackStrategy[] values()
for (CBOFallbackStrategy c : CBOFallbackStrategy.values()) System.out.println(c);
public static CBOFallbackStrategy 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 abstract boolean allowsRetry()
Copyright © 2022 The Apache Software Foundation. All rights reserved.